> ## Documentation Index
> Fetch the complete documentation index at: https://enact-465fb1fc.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Schema Reference

## JSON-RPC

### `JSONRPCErrorResponse`

interface JSONRPCErrorResponse \{\
  [jsonrpc](#jsonrpcerrorresponse-jsonrpc): "2.0";\
  [id](#jsonrpcerrorresponse-id)?: [RequestId](#requestid);\
  [error](#jsonrpcerrorresponse-error): [Error](#error);\
}A response to a request that indicates an error occurred. jsonrpc: "2.0"[Permalink](#jsonrpcerrorresponse-jsonrpc)id?: RequestId[Permalink](#jsonrpcerrorresponse-id)error: Error[Permalink](#jsonrpcerrorresponse-error)

### `JSONRPCMessage`

JSONRPCMessage: [JSONRPCRequest](#jsonrpcrequest) | [JSONRPCNotification](#jsonrpcnotification) | [JSONRPCResponse](#jsonrpcresponse)Refers to any valid JSON-RPC object that can be decoded off the wire, or encoded to be sent.&#x20;

### `JSONRPCNotification`

interface JSONRPCNotification \{\
  [method](#jsonrpcnotification-method): string;\
  [params](#jsonrpcnotification-params)?: \{ \[key: string]: any };\
  [jsonrpc](#jsonrpcnotification-jsonrpc): "2.0";\
}A notification which does not expect a response. method: string[Permalink](#jsonrpcnotification-method)Inherited from Notification.methodparams?: \{ \[key: string]: any }[Permalink](#jsonrpcnotification-params)Inherited from Notification.paramsjsonrpc: "2.0"[Permalink](#jsonrpcnotification-jsonrpc)

### `JSONRPCRequest`

interface JSONRPCRequest \{\
  [method](#jsonrpcrequest-method): string;\
  [params](#jsonrpcrequest-params)?: \{ \[key: string]: any };\
  [jsonrpc](#jsonrpcrequest-jsonrpc): "2.0";\
  [id](#jsonrpcrequest-id): [RequestId](#requestid);\
}A request that expects a response. method: string[Permalink](#jsonrpcrequest-method)Inherited from Request.methodparams?: \{ \[key: string]: any }[Permalink](#jsonrpcrequest-params)Inherited from Request.paramsjsonrpc: "2.0"[Permalink](#jsonrpcrequest-jsonrpc)id: RequestId[Permalink](#jsonrpcrequest-id)

### `JSONRPCResponse`

JSONRPCResponse: [JSONRPCResultResponse](#jsonrpcresultresponse) | [JSONRPCErrorResponse](#jsonrpcerrorresponse)A response to a request, containing either the result or error.&#x20;

### `JSONRPCResultResponse`

interface JSONRPCResultResponse \{\
  [jsonrpc](#jsonrpcresultresponse-jsonrpc): "2.0";\
  [id](#jsonrpcresultresponse-id): [RequestId](#requestid);\
  [result](#jsonrpcresultresponse-result): [Result](#result);\
}A successful (non-error) response to a request. jsonrpc: "2.0"[Permalink](#jsonrpcresultresponse-jsonrpc)id: RequestId[Permalink](#jsonrpcresultresponse-id)result: Result[Permalink](#jsonrpcresultresponse-result)

## Common Types

### `Annotations`

interface Annotations \{\
  [audience](#annotations-audience)?: [Role](#role)\[];\
  [priority](#annotations-priority)?: number;\
  [lastModified](#annotations-lastmodified)?: string;\
}Optional annotations for the client. The client can use annotations to inform how objects are used or displayed audience?: Role\[][Permalink](#annotations-audience)Describes who the intended audience of this object or data is. It can include multiple entries to indicate content useful for multiple audiences (e.g., `["user", "assistant"]`). priority?: number[Permalink](#annotations-priority)Describes how important this data is for operating the server. A value of 1 means "most important," and indicates that the data is
effectively required, while 0 means "least important," and indicates that
the data is entirely optional. lastModified?: string[Permalink](#annotations-lastmodified)The moment the resource was last modified, as an ISO 8601 formatted string. Should be an ISO 8601 formatted string (e.g., "2025-01-12T15:00:58Z"). Examples: last activity timestamp in an open file, timestamp when the resource
was attached, etc.&#x20;

### `Cursor`

Cursor: stringAn opaque token used to represent a cursor for pagination.&#x20;

### `EmptyResult`

EmptyResult: [Result](#result)A result that indicates success but carries no data.&#x20;

### `Icon`

interface Icon \{\
  [src](#icon-src): string;\
  [mimeType](#icon-mimetype)?: string;\
  [sizes](#icon-sizes)?: string\[];\
  [theme](#icon-theme)?: "light" | "dark";\
}An optionally-sized icon that can be displayed in a user interface. src: string[Permalink](#icon-src)A standard URI pointing to an icon resource. May be an HTTP/HTTPS URL or a `data:` URI with Base64-encoded image data. Consumers SHOULD take steps to ensure URLs serving icons are from the
same domain as the client/server or a trusted domain. Consumers SHOULD take appropriate precautions when consuming SVGs as they can contain
executable JavaScript. mimeType?: string[Permalink](#icon-mimetype)Optional MIME type override if the source MIME type is missing or generic.
For example: `"image/png"`, `"image/jpeg"`, or `"image/svg+xml"`. sizes?: string\[][Permalink](#icon-sizes)Optional array of strings that specify sizes at which the icon can be used.
Each string should be in WxH format (e.g., `"48x48"`, `"96x96"`) or `"any"` for scalable formats like SVG. If not provided, the client should assume that the icon can be used at any size. theme?: "light" | "dark"[Permalink](#icon-theme)Optional specifier for the theme this icon is designed for. `"light"` indicates
the icon is designed to be used with a light background, and `"dark"` indicates
the icon is designed to be used with a dark background. If not provided, the client should assume the icon can be used with any theme.&#x20;

### `LoggingLevel`

LoggingLevel:\
  | "debug"\
  | "info"\
  | "notice"\
  | "warning"\
  | "error"\
  | "critical"\
  | "alert"\
  | "emergency"The severity of a log message. These map to syslog message severities, as specified in RFC-5424: [[https://datatracker.ietf.org/doc/html/rfc5424#section-6.2.1](https://datatracker.ietf.org/doc/html/rfc5424#section-6.2.1)](https://datatracker.ietf.org/doc/html/rfc5424#section-6.2.1)&#x20;

### `MetaObject`

MetaObject: Record\<string, unknown>Represents the contents of a `_meta` field, which clients and servers use to attach additional metadata to their interactions. Certain key names are reserved by MCP for protocol-level metadata; implementations MUST NOT make assumptions about values at these keys. Additionally, specific schema definitions may reserve particular names for purpose-specific metadata, as declared in those definitions. Valid keys have two segments: **Prefix:** <ul> <li>Optional — if specified, MUST be a series of *labels* separated by dots (`.`), followed by a slash (`/`).</li> <li>Labels MUST start with a letter and end with a letter or digit. Interior characters may be letters, digits, or hyphens (`-`).</li> <li>Any prefix consisting of zero or more labels, followed by `modelcontextprotocol` or `mcp`, followed by any label, is **reserved** for MCP use. For example: `modelcontextprotocol.io/`, `mcp.dev/`, `api.modelcontextprotocol.org/`, and `tools.mcp.com/` are all reserved.</li> </ul> **Name:** <ul> <li>Unless empty, MUST start and end with an alphanumeric character (`[a-z0-9A-Z]`).</li> <li>Interior characters may be alphanumeric, hyphens (`-`), underscores (`_`), or dots (`.`).</li> </ul> See[Permalink](#see)[General fields: `_meta`](https://enact-465fb1fc.mintlify.site/specification/draft/basic/index#meta) for more details.&#x20;

### `NotificationParams`

interface NotificationParams \{\
  [\_meta](#notificationparams-_meta)?: [MetaObject](#metaobject);\
}Common params for any notification. \_meta?: MetaObject[Permalink](#notificationparams-_meta)

### `PaginatedRequestParams`

interface PaginatedRequestParams \{\
  [\_meta](#paginatedrequestparams-_meta)?: [RequestMetaObject](#requestmetaobject);\
  [cursor](#paginatedrequestparams-cursor)?: string;\
}Common params for paginated requests. <details><summary>Example: List request with cursor[Permalink](#paginatedrequestparams-example-list-request-with-cursor)</summary><pre id="paginatedrequestparams-example-list-request-with-cursor">`{  "cursor": "eyJwYWdlIjogMn0="} `Copy</pre> </details>\_meta?: RequestMetaObject[Permalink](#paginatedrequestparams-_meta)Inherited from [RequestParams](#requestparams).[\_meta](#requestparams-_meta)cursor?: string[Permalink](#paginatedrequestparams-cursor)An opaque token representing the current pagination position.
If provided, the server should return results starting after this cursor.&#x20;

### `ProgressToken`

ProgressToken: string | numberA progress token, used to associate progress notifications with the original request.&#x20;

### `RequestId`

RequestId: string | numberA uniquely identifying ID for a request in JSON-RPC.&#x20;

### `RequestMetaObject`

interface RequestMetaObject \{\
  [progressToken](#requestmetaobject-progresstoken)?: [ProgressToken](#progresstoken);\
  \[key: string]: unknown;\
}Extends [MetaObject](#metaobject) with additional request-specific fields. All key naming rules from `MetaObject` apply. See[Permalink](#see)<ul> <li>[MetaObject](#metaobject) for key naming rules and reserved prefixes.</li> <li>[General fields: `_meta`](https://enact-465fb1fc.mintlify.site/specification/draft/basic/index#meta) for more details.</li> </ul> progressToken?: ProgressToken[Permalink](#requestmetaobject-progresstoken)If specified, the caller is requesting out-of-band progress notifications for this request (as represented by [notifications/progress](#progressnotification)). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications.&#x20;

### `RequestParams`

interface RequestParams \{\
  [\_meta](#requestparams-_meta)?: [RequestMetaObject](#requestmetaobject);\
}Common params for any request. \_meta?: RequestMetaObject[Permalink](#requestparams-_meta)

### `Result`

interface Result \{\
  [\_meta](#result-_meta)?: [MetaObject](#metaobject);\
  \[key: string]: unknown;\
}Common result fields. \_meta?: MetaObject[Permalink](#result-_meta)

### `Role`

Role: "user" | "assistant"The sender or recipient of messages and data in a conversation.&#x20;

## Errors

### `Error`

interface Error \{\
  [code](#error-code): number;\
  [message](#error-message): string;\
  [data](#error-data)?: unknown;\
}code: number[Permalink](#error-code)The error type that occurred. message: string[Permalink](#error-message)A short description of the error. The message SHOULD be limited to a concise single sentence. data?: unknown[Permalink](#error-data)Additional information about the error. The value of this member is defined by the sender (e.g. detailed error information, nested errors etc.).&#x20;

### `InternalError`

interface InternalError \{\
  [message](#internalerror-message): string;\
  [data](#internalerror-data)?: unknown;\
  [code](#internalerror-code): -32603;\
}A JSON-RPC error indicating that an internal error occurred on the receiver. This error is returned when the receiver encounters an unexpected condition that prevents it from fulfilling the request. See[Permalink](#see)[JSON-RPC 2.0 Error Object](https://www.jsonrpc.org/specification#error_object) <details><summary>Example: Unexpected error[Permalink](#internalerror-example-unexpected-error)</summary><pre id="internalerror-example-unexpected-error">`{  "code": -32603,  "message": "Internal error"} `Copy</pre> </details>message: string[Permalink](#internalerror-message)A short description of the error. The message SHOULD be limited to a concise single sentence. Inherited from [Error](#error).[message](#error-message)data?: unknown[Permalink](#internalerror-data)Additional information about the error. The value of this member is defined by the sender (e.g. detailed error information, nested errors etc.). Inherited from [Error](#error).[data](#error-data)code: -32603[Permalink](#internalerror-code)The error type that occurred. Overrides [Error](#error).[code](#error-code)

### `InvalidParamsError`

interface InvalidParamsError \{\
  [message](#invalidparamserror-message): string;\
  [data](#invalidparamserror-data)?: unknown;\
  [code](#invalidparamserror-code): -32602;\
}A JSON-RPC error indicating that the method parameters are invalid or malformed. In MCP, this error is returned in various contexts when request parameters fail validation: <ul> <li>**Tools**: Unknown tool name or invalid tool arguments</li> <li>**Prompts**: Unknown prompt name or missing required arguments</li> <li>**Pagination**: Invalid or expired cursor values</li> <li>**Logging**: Invalid log level</li> <li>**Tasks**: Invalid or nonexistent task ID, invalid cursor, or attempting to cancel a task already in a terminal status</li> <li>**Elicitation**: Server requests an elicitation mode not declared in client capabilities</li> <li>**Sampling**: Missing tool result or tool results mixed with other content</li> </ul> See[Permalink](#see)[JSON-RPC 2.0 Error Object](https://www.jsonrpc.org/specification#error_object) <details><summary>Example: Unknown tool[Permalink](#invalidparamserror-example-unknown-tool)</summary><pre id="invalidparamserror-example-unknown-tool">`{  "code": -32602,  "message": "Unknown tool: invalid_tool_name"} `Copy</pre> </details><details><summary>Example: Invalid tool arguments[Permalink](#invalidparamserror-example-invalid-tool-arguments)</summary><pre id="invalidparamserror-example-invalid-tool-arguments">`{  "code": -32602,  "message": "Invalid arguments for tool calculate: Missing required property 'expression'"} `Copy</pre> </details><details><summary>Example: Unknown prompt[Permalink](#invalidparamserror-example-unknown-prompt)</summary><pre id="invalidparamserror-example-unknown-prompt">`{  "code": -32602,  "message": "Unknown prompt: invalid_prompt_name"} `Copy</pre> </details><details><summary>Example: Invalid cursor[Permalink](#invalidparamserror-example-invalid-cursor)</summary><pre id="invalidparamserror-example-invalid-cursor">`{  "code": -32602,  "message": "Invalid cursor"} `Copy</pre> </details>message: string[Permalink](#invalidparamserror-message)A short description of the error. The message SHOULD be limited to a concise single sentence. Inherited from [Error](#error).[message](#error-message)data?: unknown[Permalink](#invalidparamserror-data)Additional information about the error. The value of this member is defined by the sender (e.g. detailed error information, nested errors etc.). Inherited from [Error](#error).[data](#error-data)code: -32602[Permalink](#invalidparamserror-code)The error type that occurred. Overrides [Error](#error).[code](#error-code)

### `InvalidRequestError`

interface InvalidRequestError \{\
  [message](#invalidrequesterror-message): string;\
  [data](#invalidrequesterror-data)?: unknown;\
  [code](#invalidrequesterror-code): -32600;\
}A JSON-RPC error indicating that the request is not a valid request object. This error is returned when the message structure does not conform to the JSON-RPC 2.0 specification requirements for a request (e.g., missing required fields like `jsonrpc` or `method`, or using invalid types for these fields). See[Permalink](#see)[JSON-RPC 2.0 Error Object](https://www.jsonrpc.org/specification#error_object) message: string[Permalink](#invalidrequesterror-message)A short description of the error. The message SHOULD be limited to a concise single sentence. Inherited from [Error](#error).[message](#error-message)data?: unknown[Permalink](#invalidrequesterror-data)Additional information about the error. The value of this member is defined by the sender (e.g. detailed error information, nested errors etc.). Inherited from [Error](#error).[data](#error-data)code: -32600[Permalink](#invalidrequesterror-code)The error type that occurred. Overrides [Error](#error).[code](#error-code)

### `MethodNotFoundError`

interface MethodNotFoundError \{\
  [message](#methodnotfounderror-message): string;\
  [data](#methodnotfounderror-data)?: unknown;\
  [code](#methodnotfounderror-code): -32601;\
}A JSON-RPC error indicating that the requested method does not exist or is not available. In MCP, this error is returned when a request is made for a method that requires a capability that has not been declared. This can occur in either direction: <ul> <li>A server returning this error when the client requests a capability it doesn't support (e.g., requesting completions when the `completions` capability was not advertised)</li> <li>A client returning this error when the server requests a capability it doesn't support (e.g., requesting roots when the client did not declare the `roots` capability)</li> </ul> See[Permalink](#see)[JSON-RPC 2.0 Error Object](https://www.jsonrpc.org/specification#error_object) <details><summary>Example: Roots not supported[Permalink](#methodnotfounderror-example-roots-not-supported)</summary><pre id="methodnotfounderror-example-roots-not-supported">`{  "code": -32601,  "message": "Roots not supported",  "data": {    "reason": "Client does not have roots capability"  }} `Copy</pre> </details>message: string[Permalink](#methodnotfounderror-message)A short description of the error. The message SHOULD be limited to a concise single sentence. Inherited from [Error](#error).[message](#error-message)data?: unknown[Permalink](#methodnotfounderror-data)Additional information about the error. The value of this member is defined by the sender (e.g. detailed error information, nested errors etc.). Inherited from [Error](#error).[data](#error-data)code: -32601[Permalink](#methodnotfounderror-code)The error type that occurred. Overrides [Error](#error).[code](#error-code)

### `ParseError`

interface ParseError \{\
  [message](#parseerror-message): string;\
  [data](#parseerror-data)?: unknown;\
  [code](#parseerror-code): -32700;\
}A JSON-RPC error indicating that invalid JSON was received by the server. This error is returned when the server cannot parse the JSON text of a message. See[Permalink](#see)[JSON-RPC 2.0 Error Object](https://www.jsonrpc.org/specification#error_object) <details><summary>Example: Invalid JSON[Permalink](#parseerror-example-invalid-json)</summary><pre id="parseerror-example-invalid-json">`{  "code": -32700,  "message": "Parse error: Invalid JSON"} `Copy</pre> </details>message: string[Permalink](#parseerror-message)A short description of the error. The message SHOULD be limited to a concise single sentence. Inherited from [Error](#error).[message](#error-message)data?: unknown[Permalink](#parseerror-data)Additional information about the error. The value of this member is defined by the sender (e.g. detailed error information, nested errors etc.). Inherited from [Error](#error).[data](#error-data)code: -32700[Permalink](#parseerror-code)The error type that occurred. Overrides [Error](#error).[code](#error-code)

## Content

### `AudioContent`

interface AudioContent \{\
  [type](#audiocontent-type): "audio";\
  [data](#audiocontent-data): string;\
  [mimeType](#audiocontent-mimetype): string;\
  [annotations](#audiocontent-annotations)?: [Annotations](#annotations);\
  [\_meta](#audiocontent-_meta)?: [MetaObject](#metaobject);\
}Audio provided to or from an LLM. <details><summary>Example: \`audio/wav\` content[Permalink](#audiocontent-example-audiowav-content)</summary><pre id="audiocontent-example-audiowav-content">`{  "type": "audio",  "data": "UklGRiQAAABXQVZFZm10IBAAAAABAAEARKwAAIhYAQACABAAZGF0YQAAAAA=",  "mimeType": "audio/wav"} `Copy</pre> </details>type: "audio"[Permalink](#audiocontent-type)data: string[Permalink](#audiocontent-data)The base64-encoded audio data. mimeType: string[Permalink](#audiocontent-mimetype)The MIME type of the audio. Different providers may support different audio types. annotations?: Annotations[Permalink](#audiocontent-annotations)Optional annotations for the client. \_meta?: MetaObject[Permalink](#audiocontent-_meta)

### `BlobResourceContents`

interface BlobResourceContents \{\
  [uri](#blobresourcecontents-uri): string;\
  [mimeType](#blobresourcecontents-mimetype)?: string;\
  [\_meta](#blobresourcecontents-_meta)?: [MetaObject](#metaobject);\
  [blob](#blobresourcecontents-blob): string;\
}<details><summary>Example: Image file contents[Permalink](#blobresourcecontents-example-image-file-contents)</summary><pre id="blobresourcecontents-example-image-file-contents">`{  "uri": "file:///example.png",  "mimeType": "image/png",  "blob": "iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mNk+M9QDwADhgGAWjR9awAAAABJRU5ErkJggg=="} `Copy</pre> </details>uri: string[Permalink](#blobresourcecontents-uri)The URI of this resource. Inherited from ResourceContents.urimimeType?: string[Permalink](#blobresourcecontents-mimetype)The MIME type of this resource, if known. Inherited from ResourceContents.mimeType\_meta?: MetaObject[Permalink](#blobresourcecontents-_meta)Inherited from ResourceContents.\_metablob: string[Permalink](#blobresourcecontents-blob)A base64-encoded string representing the binary data of the item.&#x20;

### `ContentBlock`

ContentBlock:\
  | [TextContent](#textcontent)\
  | [ImageContent](#imagecontent)\
  | [AudioContent](#audiocontent)\
  | [ResourceLink](#resourcelink)\
  | [EmbeddedResource](#embeddedresource)

### `EmbeddedResource`

interface EmbeddedResource \{\
  [type](#embeddedresource-type): "resource";\
  [resource](#embeddedresource-resource): [TextResourceContents](#textresourcecontents) | [BlobResourceContents](#blobresourcecontents);\
  [annotations](#embeddedresource-annotations)?: [Annotations](#annotations);\
  [\_meta](#embeddedresource-_meta)?: [MetaObject](#metaobject);\
}The contents of a resource, embedded into a prompt or tool call result. It is up to the client how best to render embedded resources for the benefit
of the LLM and/or the user. <details><summary>Example: Embedded file resource with annotations[Permalink](#embeddedresource-example-embedded-file-resource-with-annotations)</summary><pre id="embeddedresource-example-embedded-file-resource-with-annotations">`{  "type": "resource",  "resource": {    "uri": "file:///project/src/main.rs",    "mimeType": "text/x-rust",    "text": "fn main() {\n    println!(\"Hello world!\");\n}"  },  "annotations": {    "audience": ["user", "assistant"],    "priority": 0.7,    "lastModified": "2025-05-03T14:30:00Z"  }} `Copy</pre> </details>type: "resource"[Permalink](#embeddedresource-type)resource: TextResourceContents | BlobResourceContents[Permalink](#embeddedresource-resource)annotations?: Annotations[Permalink](#embeddedresource-annotations)Optional annotations for the client. \_meta?: MetaObject[Permalink](#embeddedresource-_meta)

### `ImageContent`

interface ImageContent \{\
  [type](#imagecontent-type): "image";\
  [data](#imagecontent-data): string;\
  [mimeType](#imagecontent-mimetype): string;\
  [annotations](#imagecontent-annotations)?: [Annotations](#annotations);\
  [\_meta](#imagecontent-_meta)?: [MetaObject](#metaobject);\
}An image provided to or from an LLM. <details><summary>Example: \`image/png\` content with annotations[Permalink](#imagecontent-example-imagepng-content-with-annotations)</summary><pre id="imagecontent-example-imagepng-content-with-annotations">`{  "type": "image",  "data": "iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mNk+M9QDwADhgGAWjR9awAAAABJRU5ErkJggg==",  "mimeType": "image/png",  "annotations": {    "audience": ["user"],    "priority": 0.9  }} `Copy</pre> </details>type: "image"[Permalink](#imagecontent-type)data: string[Permalink](#imagecontent-data)The base64-encoded image data. mimeType: string[Permalink](#imagecontent-mimetype)The MIME type of the image. Different providers may support different image types. annotations?: Annotations[Permalink](#imagecontent-annotations)Optional annotations for the client. \_meta?: MetaObject[Permalink](#imagecontent-_meta)

### `ResourceLink`

interface ResourceLink \{\
  [icons](#resourcelink-icons)?: [Icon](#icon)\[];\
  [name](#resourcelink-name): string;\
  [title](#resourcelink-title)?: string;\
  [uri](#resourcelink-uri): string;\
  [description](#resourcelink-description)?: string;\
  [mimeType](#resourcelink-mimetype)?: string;\
  [annotations](#resourcelink-annotations)?: [Annotations](#annotations);\
  [size](#resourcelink-size)?: number;\
  [\_meta](#resourcelink-_meta)?: [MetaObject](#metaobject);\
  [type](#resourcelink-type): "resource\_link";\
}A resource that the server is capable of reading, included in a prompt or tool call result. Note: resource links returned by tools are not guaranteed to appear in the results of [resources/list](#listresourcesrequest) requests. <details><summary>Example: File resource link[Permalink](#resourcelink-example-file-resource-link)</summary><pre id="resourcelink-example-file-resource-link">`{  "type": "resource_link",  "uri": "file:///project/src/main.rs",  "name": "main.rs",  "description": "Primary application entry point",  "mimeType": "text/x-rust"} `Copy</pre> </details>icons?: Icon\[][Permalink](#resourcelink-icons)Optional set of sized icons that the client can display in a user interface. Clients that support rendering icons MUST support at least the following MIME types: <ul> <li>`image/png` - PNG images (safe, universal compatibility)</li> <li>`image/jpeg` (and `image/jpg`) - JPEG images (safe, universal compatibility)</li> </ul> Clients that support rendering icons SHOULD also support: <ul> <li>`image/svg+xml` - SVG images (scalable but requires security precautions)</li> <li>`image/webp` - WebP images (modern, efficient format)</li> </ul> Inherited from [Resource](#resource).[icons](#resource-icons)name: string[Permalink](#resourcelink-name)Intended for programmatic or logical use, but used as a display name in past specs or fallback (if title isn't present). Inherited from [Resource](#resource).[name](#resource-name)title?: string[Permalink](#resourcelink-title)Intended for UI and end-user contexts — optimized to be human-readable and easily understood,
even by those unfamiliar with domain-specific terminology. If not provided, the name should be used for display (except for [Tool](#tool),
where `annotations.title` should be given precedence over using `name`,
if present). Inherited from [Resource](#resource).[title](#resource-title)uri: string[Permalink](#resourcelink-uri)The URI of this resource. Inherited from [Resource](#resource).[uri](#resource-uri)description?: string[Permalink](#resourcelink-description)A description of what this resource represents. This can be used by clients to improve the LLM's understanding of available resources. It can be thought of like a "hint" to the model. Inherited from [Resource](#resource).[description](#resource-description)mimeType?: string[Permalink](#resourcelink-mimetype)The MIME type of this resource, if known. Inherited from [Resource](#resource).[mimeType](#resource-mimetype)annotations?: Annotations[Permalink](#resourcelink-annotations)Optional annotations for the client. Inherited from [Resource](#resource).[annotations](#resource-annotations)size?: number[Permalink](#resourcelink-size)The size of the raw resource content, in bytes (i.e., before base64 encoding or any tokenization), if known. This can be used by Hosts to display file sizes and estimate context window usage. Inherited from [Resource](#resource).[size](#resource-size)\_meta?: MetaObject[Permalink](#resourcelink-_meta)Inherited from [Resource](#resource).[\_meta](#resource-_meta)type: "resource\_link"[Permalink](#resourcelink-type)

### `TextContent`

interface TextContent \{\
  [type](#textcontent-type): "text";\
  [text](#textcontent-text): string;\
  [annotations](#textcontent-annotations)?: [Annotations](#annotations);\
  [\_meta](#textcontent-_meta)?: [MetaObject](#metaobject);\
}Text provided to or from an LLM. <details><summary>Example: Text content[Permalink](#textcontent-example-text-content)</summary><pre id="textcontent-example-text-content">`{  "type": "text",  "text": "Tool result text"} `Copy</pre> </details>type: "text"[Permalink](#textcontent-type)text: string[Permalink](#textcontent-text)The text content of the message. annotations?: Annotations[Permalink](#textcontent-annotations)Optional annotations for the client. \_meta?: MetaObject[Permalink](#textcontent-_meta)

### `TextResourceContents`

interface TextResourceContents \{\
  [uri](#textresourcecontents-uri): string;\
  [mimeType](#textresourcecontents-mimetype)?: string;\
  [\_meta](#textresourcecontents-_meta)?: [MetaObject](#metaobject);\
  [text](#textresourcecontents-text): string;\
}<details><summary>Example: Text file contents[Permalink](#textresourcecontents-example-text-file-contents)</summary><pre id="textresourcecontents-example-text-file-contents">`{  "uri": "file:///example.txt",  "mimeType": "text/plain",  "text": "Resource content"} `Copy</pre> </details>uri: string[Permalink](#textresourcecontents-uri)The URI of this resource. Inherited from ResourceContents.urimimeType?: string[Permalink](#textresourcecontents-mimetype)The MIME type of this resource, if known. Inherited from ResourceContents.mimeType\_meta?: MetaObject[Permalink](#textresourcecontents-_meta)Inherited from ResourceContents.\_metatext: string[Permalink](#textresourcecontents-text)The text of the item. This must only be set if the item can actually be represented as text (not binary data).&#x20;

## `completion/complete`

### `CompleteRequest`

interface CompleteRequest \{\
  [jsonrpc](#completerequest-jsonrpc): "2.0";\
  [id](#completerequest-id): [RequestId](#requestid);\
  [method](#completerequest-method): "completion/complete";\
  [params](#completerequest-params): [CompleteRequestParams](#completerequestparams);\
}A request from the client to the server, to ask for completion options. <details><summary>Example: Completion request[Permalink](#completerequest-example-completion-request)</summary><pre id="completerequest-example-completion-request">`{  "jsonrpc": "2.0",  "id": "completion-example",  "method": "completion/complete",  "params": {    "ref": {      "type": "ref/prompt",      "name": "code_review"    },    "argument": {      "name": "language",      "value": "py"    }  }} `Copy</pre> </details>jsonrpc: "2.0"[Permalink](#completerequest-jsonrpc)Inherited from [JSONRPCRequest](#jsonrpcrequest).[jsonrpc](#jsonrpcrequest-jsonrpc)id: RequestId[Permalink](#completerequest-id)Inherited from [JSONRPCRequest](#jsonrpcrequest).[id](#jsonrpcrequest-id)method: "completion/complete"[Permalink](#completerequest-method)Overrides [JSONRPCRequest](#jsonrpcrequest).[method](#jsonrpcrequest-method)params: CompleteRequestParams[Permalink](#completerequest-params)Overrides [JSONRPCRequest](#jsonrpcrequest).[params](#jsonrpcrequest-params)

### `CompleteRequestParams`

interface CompleteRequestParams \{\
  [\_meta](#completerequestparams-_meta)?: [RequestMetaObject](#requestmetaobject);\
  [ref](#completerequestparams-ref): [PromptReference](#promptreference) | [ResourceTemplateReference](#resourcetemplatereference);\
  [argument](#completerequestparams-argument): \{ name: string; value: string };\
  [context](#completerequestparams-context)?: \{ arguments?: \{ \[key: string]: string } };\
}Parameters for a `completion/complete` request. <details><summary>Example: Prompt argument completion[Permalink](#completerequestparams-example-prompt-argument-completion)</summary><pre id="completerequestparams-example-prompt-argument-completion">`{  "ref": {    "type": "ref/prompt",    "name": "code_review"  },  "argument": {    "name": "language",    "value": "py"  }} `Copy</pre> </details><details><summary>Example: Prompt argument completion with context[Permalink](#completerequestparams-example-prompt-argument-completion-with-context)</summary><pre id="completerequestparams-example-prompt-argument-completion-with-context">`{  "ref": {    "type": "ref/prompt",    "name": "code_review"  },  "argument": {    "name": "framework",    "value": "fla"  },  "context": {    "arguments": {      "language": "python"    }  }} `Copy</pre> </details>\_meta?: RequestMetaObject[Permalink](#completerequestparams-_meta)Inherited from [RequestParams](#requestparams).[\_meta](#requestparams-_meta)ref: PromptReference | ResourceTemplateReference[Permalink](#completerequestparams-ref)argument: \{ name: string; value: string }[Permalink](#completerequestparams-argument)The argument's information Type Declaration<ul><li>name: stringThe name of the argument </li><li>value: stringThe value of the argument to use for completion matching. </li></ul>context?: \{ arguments?: \{ \[key: string]: string } }[Permalink](#completerequestparams-context)Additional, optional context for completions Type Declaration<ul><li>`Optional`arguments?: \{ \[key: string]: string }Previously-resolved variables in a URI template or prompt. </li></ul>

### `CompleteResultResponse`

interface CompleteResultResponse \{\
  [jsonrpc](#completeresultresponse-jsonrpc): "2.0";\
  [id](#completeresultresponse-id): [RequestId](#requestid);\
  [result](#completeresultresponse-result): [CompleteResult](#completeresult);\
}A successful response from the server for a [completion/complete](#completerequest) request. <details><summary>Example: Completion result response[Permalink](#completeresultresponse-example-completion-result-response)</summary><pre id="completeresultresponse-example-completion-result-response">`{  "jsonrpc": "2.0",  "id": "completion-example",  "result": {    "completion": {      "values": ["flask"],      "total": 1,      "hasMore": false    }  }} `Copy</pre> </details>jsonrpc: "2.0"[Permalink](#completeresultresponse-jsonrpc)Inherited from [JSONRPCResultResponse](#jsonrpcresultresponse).[jsonrpc](#jsonrpcresultresponse-jsonrpc)id: RequestId[Permalink](#completeresultresponse-id)Inherited from [JSONRPCResultResponse](#jsonrpcresultresponse).[id](#jsonrpcresultresponse-id)result: CompleteResult[Permalink](#completeresultresponse-result)Overrides [JSONRPCResultResponse](#jsonrpcresultresponse).[result](#jsonrpcresultresponse-result)

### `CompleteResult`

interface CompleteResult \{\
  [\_meta](#completeresult-_meta)?: [MetaObject](#metaobject);\
  [completion](#completeresult-completion): \{ values: string\[]; total?: number; hasMore?: boolean };\
  \[key: string]: unknown;\
}The result returned by the server for a [completion/complete](#completerequest) request. <details><summary>Example: Single completion value[Permalink](#completeresult-example-single-completion-value)</summary><pre id="completeresult-example-single-completion-value">`{  "completion": {    "values": ["flask"],    "total": 1,    "hasMore": false  }} `Copy</pre> </details><details><summary>Example: Multiple completion values with more available[Permalink](#completeresult-example-multiple-completion-values-with-more-available)</summary><pre id="completeresult-example-multiple-completion-values-with-more-available">`{  "completion": {    "values": ["python", "pytorch", "pyside"],    "total": 10,    "hasMore": true  }} `Copy</pre> </details>\_meta?: MetaObject[Permalink](#completeresult-_meta)Inherited from [Result](#result).[\_meta](#result-_meta)completion: \{ values: string\[]; total?: number; hasMore?: boolean }[Permalink](#completeresult-completion)Type Declaration<ul><li>values: string\[]An array of completion values. Must not exceed 100 items. </li><li>`Optional`total?: numberThe total number of completion options available. This can exceed the number of values actually sent in the response. </li><li>`Optional`hasMore?: booleanIndicates whether there are additional completion options beyond those provided in the current response, even if the exact total is unknown. </li></ul>

### `PromptReference`

interface PromptReference \{\
  [name](#promptreference-name): string;\
  [title](#promptreference-title)?: string;\
  [type](#promptreference-type): "ref/prompt";\
}Identifies a prompt. name: string[Permalink](#promptreference-name)Intended for programmatic or logical use, but used as a display name in past specs or fallback (if title isn't present). Inherited from BaseMetadata.nametitle?: string[Permalink](#promptreference-title)Intended for UI and end-user contexts — optimized to be human-readable and easily understood,
even by those unfamiliar with domain-specific terminology. If not provided, the name should be used for display (except for [Tool](#tool),
where `annotations.title` should be given precedence over using `name`,
if present). Inherited from BaseMetadata.titletype: "ref/prompt"[Permalink](#promptreference-type)

### `ResourceTemplateReference`

interface ResourceTemplateReference \{\
  [type](#resourcetemplatereference-type): "ref/resource";\
  [uri](#resourcetemplatereference-uri): string;\
}A reference to a resource or resource template definition. type: "ref/resource"[Permalink](#resourcetemplatereference-type)uri: string[Permalink](#resourcetemplatereference-uri)The URI or URI template of the resource.&#x20;

## `elicitation/create`

### `ElicitRequest`

interface ElicitRequest \{\
  [jsonrpc](#elicitrequest-jsonrpc): "2.0";\
  [id](#elicitrequest-id): [RequestId](#requestid);\
  [method](#elicitrequest-method): "elicitation/create";\
  [params](#elicitrequest-params): [ElicitRequestParams](#elicitrequestparams);\
}A request from the server to elicit additional information from the user via the client. <details><summary>Example: Elicitation request[Permalink](#elicitrequest-example-elicitation-request)</summary><pre id="elicitrequest-example-elicitation-request">`{  "jsonrpc": "2.0",  "id": "elicitation-example",  "method": "elicitation/create",  "params": {    "mode": "form",    "message": "Please provide your GitHub username",    "requestedSchema": {      "type": "object",      "properties": {        "name": {          "type": "string"        }      },      "required": ["name"]    }  }} `Copy</pre> </details>jsonrpc: "2.0"[Permalink](#elicitrequest-jsonrpc)Inherited from [JSONRPCRequest](#jsonrpcrequest).[jsonrpc](#jsonrpcrequest-jsonrpc)id: RequestId[Permalink](#elicitrequest-id)Inherited from [JSONRPCRequest](#jsonrpcrequest).[id](#jsonrpcrequest-id)method: "elicitation/create"[Permalink](#elicitrequest-method)Overrides [JSONRPCRequest](#jsonrpcrequest).[method](#jsonrpcrequest-method)params: ElicitRequestParams[Permalink](#elicitrequest-params)Overrides [JSONRPCRequest](#jsonrpcrequest).[params](#jsonrpcrequest-params)

### `ElicitRequestParams`

ElicitRequestParams: [ElicitRequestFormParams](#elicitrequestformparams) | [ElicitRequestURLParams](#elicitrequesturlparams)The parameters for a request to elicit additional information from the user via the client.&#x20;

### `ElicitResultResponse`

interface ElicitResultResponse \{\
  [jsonrpc](#elicitresultresponse-jsonrpc): "2.0";\
  [id](#elicitresultresponse-id): [RequestId](#requestid);\
  [result](#elicitresultresponse-result): [ElicitResult](#elicitresult);\
}A successful response from the client for a [elicitation/create](#elicitrequest) request. <details><summary>Example: Elicitation result response[Permalink](#elicitresultresponse-example-elicitation-result-response)</summary><pre id="elicitresultresponse-example-elicitation-result-response">`{  "jsonrpc": "2.0",  "id": "elicitation-example",  "result": {    "action": "accept",    "content": {      "name": "octocat"    }  }} `Copy</pre> </details>jsonrpc: "2.0"[Permalink](#elicitresultresponse-jsonrpc)Inherited from [JSONRPCResultResponse](#jsonrpcresultresponse).[jsonrpc](#jsonrpcresultresponse-jsonrpc)id: RequestId[Permalink](#elicitresultresponse-id)Inherited from [JSONRPCResultResponse](#jsonrpcresultresponse).[id](#jsonrpcresultresponse-id)result: ElicitResult[Permalink](#elicitresultresponse-result)Overrides [JSONRPCResultResponse](#jsonrpcresultresponse).[result](#jsonrpcresultresponse-result)

### `ElicitResult`

interface ElicitResult \{\
  [\_meta](#elicitresult-_meta)?: [MetaObject](#metaobject);\
  [action](#elicitresult-action): "accept" | "decline" | "cancel";\
  [content](#elicitresult-content)?: \{ \[key: string]: string | number | boolean | string\[] };\
  \[key: string]: unknown;\
}The result returned by the client for an [elicitation/create](#elicitrequest) request. <details><summary>Example: Input single field[Permalink](#elicitresult-example-input-single-field)</summary><pre id="elicitresult-example-input-single-field">`{  "action": "accept",  "content": {    "name": "octocat"  }} `Copy</pre> </details><details><summary>Example: Input multiple fields[Permalink](#elicitresult-example-input-multiple-fields)</summary><pre id="elicitresult-example-input-multiple-fields">`{  "action": "accept",  "content": {    "name": "Monalisa Octocat",    "email": "octocat@github.com",    "age": 30  }} `Copy</pre> </details><details><summary>Example: Accept URL mode (no content)[Permalink](#elicitresult-example-accept-url-mode-no-content)</summary><pre id="elicitresult-example-accept-url-mode-no-content">`{  "action": "accept"} `Copy</pre> </details>\_meta?: MetaObject[Permalink](#elicitresult-_meta)Inherited from [Result](#result).[\_meta](#result-_meta)action: "accept" | "decline" | "cancel"[Permalink](#elicitresult-action)The user action in response to the elicitation. <ul> <li>`"accept"`: User submitted the form/confirmed the action</li> <li>`"decline"`: User explicitly declined the action</li> <li>`"cancel"`: User dismissed without making an explicit choice</li> </ul> content?: \{ \[key: string]: string | number | boolean | string\[] }[Permalink](#elicitresult-content)The submitted form data, only present when action is `"accept"` and mode was `"form"`.
Contains values matching the requested schema.
Omitted for out-of-band mode responses.&#x20;

### `BooleanSchema`

interface BooleanSchema \{\
  [type](#booleanschema-type): "boolean";\
  [title](#booleanschema-title)?: string;\
  [description](#booleanschema-description)?: string;\
  [default](#booleanschema-default)?: boolean;\
}<details><summary>Example: Boolean input schema[Permalink](#booleanschema-example-boolean-input-schema)</summary><pre id="booleanschema-example-boolean-input-schema">`{  "type": "boolean",  "title": "Display Name",  "description": "Description text",  "default": false} `Copy</pre> </details>type: "boolean"[Permalink](#booleanschema-type)title?: string[Permalink](#booleanschema-title)description?: string[Permalink](#booleanschema-description)default?: boolean[Permalink](#booleanschema-default)

### `ElicitRequestFormParams`

interface ElicitRequestFormParams \{\
  [task](#elicitrequestformparams-task)?: [TaskMetadata](#taskmetadata);\
  [\_meta](#elicitrequestformparams-_meta)?: [RequestMetaObject](#requestmetaobject);\
  [mode](#elicitrequestformparams-mode)?: "form";\
  [message](#elicitrequestformparams-message): string;\
  [requestedSchema](#elicitrequestformparams-requestedschema): \{\
    \$schema?: string;\
    type: "object";\
    properties: \{ \[key: string]: [PrimitiveSchemaDefinition](#primitiveschemadefinition) };\
    required?: string\[];\
  };\
}The parameters for a request to elicit non-sensitive information from the user via a form in the client. <details><summary>Example: Elicit single field[Permalink](#elicitrequestformparams-example-elicit-single-field)</summary><pre id="elicitrequestformparams-example-elicit-single-field">`{  "mode": "form",  "message": "Please provide your GitHub username",  "requestedSchema": {    "type": "object",    "properties": {      "name": {        "type": "string"      }    },    "required": ["name"]  }} `Copy</pre> </details><details><summary>Example: Elicit multiple fields[Permalink](#elicitrequestformparams-example-elicit-multiple-fields)</summary><pre id="elicitrequestformparams-example-elicit-multiple-fields">`{  "mode": "form",  "message": "Please provide your contact information",  "requestedSchema": {    "type": "object",    "properties": {      "name": {        "type": "string",        "description": "Your full name"      },      "email": {        "type": "string",        "format": "email",        "description": "Your email address"      },      "age": {        "type": "number",        "minimum": 18,        "description": "Your age"      }    },    "required": ["name", "email"]  }} `Copy</pre> </details>task?: TaskMetadata[Permalink](#elicitrequestformparams-task)If specified, the caller is requesting task-augmented execution for this request.
The request will return a [CreateTaskResult](#createtaskresult) immediately, and the actual result can be
retrieved later via [tasks/result](#gettaskpayloadrequest). Task augmentation is subject to capability negotiation - receivers MUST declare support
for task augmentation of specific request types in their capabilities. Inherited from TaskAugmentedRequestParams.task\_meta?: RequestMetaObject[Permalink](#elicitrequestformparams-_meta)Inherited from TaskAugmentedRequestParams.\_metamode?: "form"[Permalink](#elicitrequestformparams-mode)The elicitation mode. message: string[Permalink](#elicitrequestformparams-message)The message to present to the user describing what information is being requested. requestedSchema: \{    \$schema?: string;    type: "object";    properties: \{ \[key: string]: PrimitiveSchemaDefinition };    required?: string\[]; }[Permalink](#elicitrequestformparams-requestedschema)A restricted subset of JSON Schema.
Only top-level properties are allowed, without nesting.&#x20;

### `ElicitRequestURLParams`

interface ElicitRequestURLParams \{\
  [task](#elicitrequesturlparams-task)?: [TaskMetadata](#taskmetadata);\
  [\_meta](#elicitrequesturlparams-_meta)?: [RequestMetaObject](#requestmetaobject);\
  [mode](#elicitrequesturlparams-mode): "url";\
  [message](#elicitrequesturlparams-message): string;\
  [elicitationId](#elicitrequesturlparams-elicitationid): string;\
  [url](#elicitrequesturlparams-url): string;\
}The parameters for a request to elicit information from the user via a URL in the client. <details><summary>Example: Elicit sensitive data[Permalink](#elicitrequesturlparams-example-elicit-sensitive-data)</summary><pre id="elicitrequesturlparams-example-elicit-sensitive-data">`{  "mode": "url",  "elicitationId": "550e8400-e29b-41d4-a716-446655440000",  "url": "https://mcp.example.com/ui/set&#x5F;api&#x5F;key",  "message": "Please provide your API key to continue."} `Copy</pre> </details>task?: TaskMetadata[Permalink](#elicitrequesturlparams-task)If specified, the caller is requesting task-augmented execution for this request.
The request will return a [CreateTaskResult](#createtaskresult) immediately, and the actual result can be
retrieved later via [tasks/result](#gettaskpayloadrequest). Task augmentation is subject to capability negotiation - receivers MUST declare support
for task augmentation of specific request types in their capabilities. Inherited from TaskAugmentedRequestParams.task\_meta?: RequestMetaObject[Permalink](#elicitrequesturlparams-_meta)Inherited from TaskAugmentedRequestParams.\_metamode: "url"[Permalink](#elicitrequesturlparams-mode)The elicitation mode. message: string[Permalink](#elicitrequesturlparams-message)The message to present to the user explaining why the interaction is needed. elicitationId: string[Permalink](#elicitrequesturlparams-elicitationid)The ID of the elicitation, which must be unique within the context of the server.
The client MUST treat this ID as an opaque value. url: string[Permalink](#elicitrequesturlparams-url)The URL that the user should navigate to.&#x20;

### `EnumSchema`

EnumSchema:\
  | [SingleSelectEnumSchema](#singleselectenumschema)\
  | [MultiSelectEnumSchema](#multiselectenumschema)\
  | [LegacyTitledEnumSchema](#legacytitledenumschema)

### `LegacyTitledEnumSchema`

interface LegacyTitledEnumSchema \{\
  [type](#legacytitledenumschema-type): "string";\
  [title](#legacytitledenumschema-title)?: string;\
  [description](#legacytitledenumschema-description)?: string;\
  [enum](#legacytitledenumschema-enum): string\[];\
  [enumNames](#legacytitledenumschema-enumnames)?: string\[];\
  [default](#legacytitledenumschema-default)?: string;\
}Use [TitledSingleSelectEnumSchema](#titledsingleselectenumschema) instead.
This interface will be removed in a future version. type: "string"[Permalink](#legacytitledenumschema-type)title?: string[Permalink](#legacytitledenumschema-title)description?: string[Permalink](#legacytitledenumschema-description)enum: string\[][Permalink](#legacytitledenumschema-enum)enumNames?: string\[][Permalink](#legacytitledenumschema-enumnames)(Legacy) Display names for enum values.
Non-standard according to JSON schema 2020-12. default?: string[Permalink](#legacytitledenumschema-default)

### `MultiSelectEnumSchema`

MultiSelectEnumSchema:\
  | [UntitledMultiSelectEnumSchema](#untitledmultiselectenumschema)\
  | [TitledMultiSelectEnumSchema](#titledmultiselectenumschema)

### `NumberSchema`

interface NumberSchema \{\
  [type](#numberschema-type): "number" | "integer";\
  [title](#numberschema-title)?: string;\
  [description](#numberschema-description)?: string;\
  [minimum](#numberschema-minimum)?: number;\
  [maximum](#numberschema-maximum)?: number;\
  [default](#numberschema-default)?: number;\
}<details><summary>Example: Number input schema[Permalink](#numberschema-example-number-input-schema)</summary><pre id="numberschema-example-number-input-schema">`{  "type": "number",  "title": "Display Name",  "description": "Description text",  "minimum": 0,  "maximum": 100,  "default": 50} `Copy</pre> </details>type: "number" | "integer"[Permalink](#numberschema-type)title?: string[Permalink](#numberschema-title)description?: string[Permalink](#numberschema-description)minimum?: number[Permalink](#numberschema-minimum)maximum?: number[Permalink](#numberschema-maximum)default?: number[Permalink](#numberschema-default)

### `PrimitiveSchemaDefinition`

PrimitiveSchemaDefinition:\
  | [StringSchema](#stringschema)\
  | [NumberSchema](#numberschema)\
  | [BooleanSchema](#booleanschema)\
  | [EnumSchema](#enumschema)Restricted schema definitions that only allow primitive types
without nested objects or arrays.&#x20;

### `SingleSelectEnumSchema`

SingleSelectEnumSchema:\
  | [UntitledSingleSelectEnumSchema](#untitledsingleselectenumschema)\
  | [TitledSingleSelectEnumSchema](#titledsingleselectenumschema)

### `StringSchema`

interface StringSchema \{\
  [type](#stringschema-type): "string";\
  [title](#stringschema-title)?: string;\
  [description](#stringschema-description)?: string;\
  [minLength](#stringschema-minlength)?: number;\
  [maxLength](#stringschema-maxlength)?: number;\
  [format](#stringschema-format)?: "uri" | "email" | "date" | "date-time";\
  [default](#stringschema-default)?: string;\
}<details><summary>Example: Email input schema[Permalink](#stringschema-example-email-input-schema)</summary><pre id="stringschema-example-email-input-schema">`{  "type": "string",  "title": "Display Name",  "description": "Description text",  "minLength": 3,  "maxLength": 50,  "format": "email",  "default": "user@example.com"} `Copy</pre> </details>type: "string"[Permalink](#stringschema-type)title?: string[Permalink](#stringschema-title)description?: string[Permalink](#stringschema-description)minLength?: number[Permalink](#stringschema-minlength)maxLength?: number[Permalink](#stringschema-maxlength)format?: "uri" | "email" | "date" | "date-time"[Permalink](#stringschema-format)default?: string[Permalink](#stringschema-default)

### `TitledMultiSelectEnumSchema`

interface TitledMultiSelectEnumSchema \{\
  [type](#titledmultiselectenumschema-type): "array";\
  [title](#titledmultiselectenumschema-title)?: string;\
  [description](#titledmultiselectenumschema-description)?: string;\
  [minItems](#titledmultiselectenumschema-minitems)?: number;\
  [maxItems](#titledmultiselectenumschema-maxitems)?: number;\
  [items](#titledmultiselectenumschema-items): \{ anyOf: \{ const: string; title: string }\[] };\
  [default](#titledmultiselectenumschema-default)?: string\[];\
}Schema for multiple-selection enumeration with display titles for each option. <details><summary>Example: Titled color multi-select schema[Permalink](#titledmultiselectenumschema-example-titled-color-multi-select-schema)</summary><pre id="titledmultiselectenumschema-example-titled-color-multi-select-schema">`{  "type": "array",  "title": "Color Selection",  "description": "Choose your favorite colors",  "minItems": 1,  "maxItems": 2,  "items": {    "anyOf": [      { "const": "#FF0000", "title": "Red" },      { "const": "#00FF00", "title": "Green" },      { "const": "#0000FF", "title": "Blue" }    ]  },  "default": ["#FF0000", "#00FF00"]} `Copy</pre> </details>type: "array"[Permalink](#titledmultiselectenumschema-type)title?: string[Permalink](#titledmultiselectenumschema-title)Optional title for the enum field. description?: string[Permalink](#titledmultiselectenumschema-description)Optional description for the enum field. minItems?: number[Permalink](#titledmultiselectenumschema-minitems)Minimum number of items to select. maxItems?: number[Permalink](#titledmultiselectenumschema-maxitems)Maximum number of items to select. items: \{ anyOf: \{ const: string; title: string }\[] }[Permalink](#titledmultiselectenumschema-items)Schema for array items with enum options and display labels. Type Declaration<ul><li>anyOf: \{ const: string; title: string }\[]Array of enum options with values and display labels. </li></ul>default?: string\[][Permalink](#titledmultiselectenumschema-default)Optional default value.&#x20;

### `TitledSingleSelectEnumSchema`

interface TitledSingleSelectEnumSchema \{\
  [type](#titledsingleselectenumschema-type): "string";\
  [title](#titledsingleselectenumschema-title)?: string;\
  [description](#titledsingleselectenumschema-description)?: string;\
  [oneOf](#titledsingleselectenumschema-oneof): \{ const: string; title: string }\[];\
  [default](#titledsingleselectenumschema-default)?: string;\
}Schema for single-selection enumeration with display titles for each option. <details><summary>Example: Titled color select schema[Permalink](#titledsingleselectenumschema-example-titled-color-select-schema)</summary><pre id="titledsingleselectenumschema-example-titled-color-select-schema">`{  "type": "string",  "title": "Color Selection",  "description": "Choose your favorite color",  "oneOf": [    { "const": "#FF0000", "title": "Red" },    { "const": "#00FF00", "title": "Green" },    { "const": "#0000FF", "title": "Blue" }  ],  "default": "#FF0000"} `Copy</pre> </details>type: "string"[Permalink](#titledsingleselectenumschema-type)title?: string[Permalink](#titledsingleselectenumschema-title)Optional title for the enum field. description?: string[Permalink](#titledsingleselectenumschema-description)Optional description for the enum field. oneOf: \{ const: string; title: string }\[][Permalink](#titledsingleselectenumschema-oneof)Array of enum options with values and display labels. Type Declaration<ul><li>const: stringThe enum value. </li><li>title: stringDisplay label for this option. </li></ul>default?: string[Permalink](#titledsingleselectenumschema-default)Optional default value.&#x20;

### `UntitledMultiSelectEnumSchema`

interface UntitledMultiSelectEnumSchema \{\
  [type](#untitledmultiselectenumschema-type): "array";\
  [title](#untitledmultiselectenumschema-title)?: string;\
  [description](#untitledmultiselectenumschema-description)?: string;\
  [minItems](#untitledmultiselectenumschema-minitems)?: number;\
  [maxItems](#untitledmultiselectenumschema-maxitems)?: number;\
  [items](#untitledmultiselectenumschema-items): \{ type: "string"; enum: string\[] };\
  [default](#untitledmultiselectenumschema-default)?: string\[];\
}Schema for multiple-selection enumeration without display titles for options. <details><summary>Example: Color multi-select schema[Permalink](#untitledmultiselectenumschema-example-color-multi-select-schema)</summary><pre id="untitledmultiselectenumschema-example-color-multi-select-schema">`{  "type": "array",  "title": "Color Selection",  "description": "Choose your favorite colors",  "minItems": 1,  "maxItems": 2,  "items": {    "type": "string",    "enum": ["Red", "Green", "Blue"]  },  "default": ["Red", "Green"]} `Copy</pre> </details>type: "array"[Permalink](#untitledmultiselectenumschema-type)title?: string[Permalink](#untitledmultiselectenumschema-title)Optional title for the enum field. description?: string[Permalink](#untitledmultiselectenumschema-description)Optional description for the enum field. minItems?: number[Permalink](#untitledmultiselectenumschema-minitems)Minimum number of items to select. maxItems?: number[Permalink](#untitledmultiselectenumschema-maxitems)Maximum number of items to select. items: \{ type: "string"; enum: string\[] }[Permalink](#untitledmultiselectenumschema-items)Schema for the array items. Type Declaration<ul><li>type: "string"</li><li>enum: string\[]Array of enum values to choose from. </li></ul>default?: string\[][Permalink](#untitledmultiselectenumschema-default)Optional default value.&#x20;

### `UntitledSingleSelectEnumSchema`

interface UntitledSingleSelectEnumSchema \{\
  [type](#untitledsingleselectenumschema-type): "string";\
  [title](#untitledsingleselectenumschema-title)?: string;\
  [description](#untitledsingleselectenumschema-description)?: string;\
  [enum](#untitledsingleselectenumschema-enum): string\[];\
  [default](#untitledsingleselectenumschema-default)?: string;\
}Schema for single-selection enumeration without display titles for options. <details><summary>Example: Color select schema[Permalink](#untitledsingleselectenumschema-example-color-select-schema)</summary><pre id="untitledsingleselectenumschema-example-color-select-schema">`{  "type": "string",  "title": "Color Selection",  "description": "Choose your favorite color",  "enum": ["Red", "Green", "Blue"],  "default": "Red"} `Copy</pre> </details>type: "string"[Permalink](#untitledsingleselectenumschema-type)title?: string[Permalink](#untitledsingleselectenumschema-title)Optional title for the enum field. description?: string[Permalink](#untitledsingleselectenumschema-description)Optional description for the enum field. enum: string\[][Permalink](#untitledsingleselectenumschema-enum)Array of enum values to choose from. default?: string[Permalink](#untitledsingleselectenumschema-default)Optional default value.&#x20;

## `initialize`

### `InitializeRequest`

interface InitializeRequest \{\
  [jsonrpc](#initializerequest-jsonrpc): "2.0";\
  [id](#initializerequest-id): [RequestId](#requestid);\
  [method](#initializerequest-method): "initialize";\
  [params](#initializerequest-params): [InitializeRequestParams](#initializerequestparams);\
}This request is sent from the client to the server when it first connects, asking it to begin initialization. <details><summary>Example: Initialize request[Permalink](#initializerequest-example-initialize-request)</summary><pre id="initializerequest-example-initialize-request">`{  "jsonrpc": "2.0",  "id": "initialize-example",  "method": "initialize",  "params": {    "protocolVersion": "2024-11-05",    "capabilities": {      "roots": {        "listChanged": true      },      "sampling": {},      "elicitation": {        "form": {},        "url": {}      },      "tasks": {        "requests": {          "elicitation": {            "create": {}          },          "sampling": {            "createMessage": {}          }        }      }    },    "clientInfo": {      "name": "ExampleClient",      "title": "Example Client Display Name",      "version": "1.0.0",      "description": "An example MCP client application",      "icons": [        {          "src": "https://example.com/icon.png",          "mimeType": "image/png",          "sizes": ["48x48"]        }      ],      "websiteUrl": "https://example.com"    }  }} `Copy</pre> </details>jsonrpc: "2.0"[Permalink](#initializerequest-jsonrpc)Inherited from [JSONRPCRequest](#jsonrpcrequest).[jsonrpc](#jsonrpcrequest-jsonrpc)id: RequestId[Permalink](#initializerequest-id)Inherited from [JSONRPCRequest](#jsonrpcrequest).[id](#jsonrpcrequest-id)method: "initialize"[Permalink](#initializerequest-method)Overrides [JSONRPCRequest](#jsonrpcrequest).[method](#jsonrpcrequest-method)params: InitializeRequestParams[Permalink](#initializerequest-params)Overrides [JSONRPCRequest](#jsonrpcrequest).[params](#jsonrpcrequest-params)

### `InitializeRequestParams`

interface InitializeRequestParams \{\
  [\_meta](#initializerequestparams-_meta)?: [RequestMetaObject](#requestmetaobject);\
  [protocolVersion](#initializerequestparams-protocolversion): string;\
  [capabilities](#initializerequestparams-capabilities): [ClientCapabilities](#clientcapabilities);\
  [clientInfo](#initializerequestparams-clientinfo): [Implementation](#implementation);\
}Parameters for an `initialize` request. <details><summary>Example: Full client capabilities[Permalink](#initializerequestparams-example-full-client-capabilities)</summary><pre id="initializerequestparams-example-full-client-capabilities">`{  "protocolVersion": "2024-11-05",  "capabilities": {    "roots": {      "listChanged": true    },    "sampling": {},    "elicitation": {      "form": {},      "url": {}    },    "tasks": {      "requests": {        "elicitation": {          "create": {}        },        "sampling": {          "createMessage": {}        }      }    }  },  "clientInfo": {    "name": "ExampleClient",    "title": "Example Client Display Name",    "version": "1.0.0",    "description": "An example MCP client application",    "icons": [      {        "src": "https://example.com/icon.png",        "mimeType": "image/png",        "sizes": ["48x48"]      }    ],    "websiteUrl": "https://example.com"  }} `Copy</pre> </details>\_meta?: RequestMetaObject[Permalink](#initializerequestparams-_meta)Inherited from [RequestParams](#requestparams).[\_meta](#requestparams-_meta)protocolVersion: string[Permalink](#initializerequestparams-protocolversion)The latest version of the Model Context Protocol that the client supports. The client MAY decide to support older versions as well. capabilities: ClientCapabilities[Permalink](#initializerequestparams-capabilities)clientInfo: Implementation[Permalink](#initializerequestparams-clientinfo)

### `InitializeResultResponse`

interface InitializeResultResponse \{\
  [jsonrpc](#initializeresultresponse-jsonrpc): "2.0";\
  [id](#initializeresultresponse-id): [RequestId](#requestid);\
  [result](#initializeresultresponse-result): [InitializeResult](#initializeresult);\
}A successful response from the server for a [initialize](#initializerequest) request. <details><summary>Example: Initialize result response[Permalink](#initializeresultresponse-example-initialize-result-response)</summary><pre id="initializeresultresponse-example-initialize-result-response">`{  "jsonrpc": "2.0",  "id": "initialize-example",  "result": {    "protocolVersion": "2024-11-05",    "capabilities": {      "logging": {},      "prompts": {        "listChanged": true      },      "resources": {        "subscribe": true,        "listChanged": true      },      "tools": {        "listChanged": true      },      "tasks": {        "list": {},        "cancel": {},        "requests": {          "tools": {            "call": {}          }        }      }    },    "serverInfo": {      "name": "ExampleServer",      "title": "Example Server Display Name",      "version": "1.0.0",      "description": "An example MCP server providing tools and resources",      "icons": [        {          "src": "https://example.com/server-icon.svg",          "mimeType": "image/svg+xml",          "sizes": ["any"]        }      ],      "websiteUrl": "https://example.com/server"    },    "instructions": "Optional instructions for the client"  }} `Copy</pre> </details>jsonrpc: "2.0"[Permalink](#initializeresultresponse-jsonrpc)Inherited from [JSONRPCResultResponse](#jsonrpcresultresponse).[jsonrpc](#jsonrpcresultresponse-jsonrpc)id: RequestId[Permalink](#initializeresultresponse-id)Inherited from [JSONRPCResultResponse](#jsonrpcresultresponse).[id](#jsonrpcresultresponse-id)result: InitializeResult[Permalink](#initializeresultresponse-result)Overrides [JSONRPCResultResponse](#jsonrpcresultresponse).[result](#jsonrpcresultresponse-result)

### `InitializeResult`

interface InitializeResult \{\
  [\_meta](#initializeresult-_meta)?: [MetaObject](#metaobject);\
  [protocolVersion](#initializeresult-protocolversion): string;\
  [capabilities](#initializeresult-capabilities): [ServerCapabilities](#servercapabilities);\
  [serverInfo](#initializeresult-serverinfo): [Implementation](#implementation);\
  [instructions](#initializeresult-instructions)?: string;\
  \[key: string]: unknown;\
}The result returned by the server for an [initialize](#initializerequest) request. <details><summary>Example: Full server capabilities[Permalink](#initializeresult-example-full-server-capabilities)</summary><pre id="initializeresult-example-full-server-capabilities">`{  "protocolVersion": "2024-11-05",  "capabilities": {    "logging": {},    "prompts": {      "listChanged": true    },    "resources": {      "subscribe": true,      "listChanged": true    },    "tools": {      "listChanged": true    },    "tasks": {      "list": {},      "cancel": {},      "requests": {        "tools": {          "call": {}        }      }    }  },  "serverInfo": {    "name": "ExampleServer",    "title": "Example Server Display Name",    "version": "1.0.0",    "description": "An example MCP server providing tools and resources",    "icons": [      {        "src": "https://example.com/server-icon.svg",        "mimeType": "image/svg+xml",        "sizes": ["any"]      }    ],    "websiteUrl": "https://example.com/server"  },  "instructions": "Optional instructions for the client"} `Copy</pre> </details>\_meta?: MetaObject[Permalink](#initializeresult-_meta)Inherited from [Result](#result).[\_meta](#result-_meta)protocolVersion: string[Permalink](#initializeresult-protocolversion)The version of the Model Context Protocol that the server wants to use. This may not match the version that the client requested. If the client cannot support this version, it MUST disconnect. capabilities: ServerCapabilities[Permalink](#initializeresult-capabilities)serverInfo: Implementation[Permalink](#initializeresult-serverinfo)instructions?: string[Permalink](#initializeresult-instructions)Instructions describing how to use the server and its features. This can be used by clients to improve the LLM's understanding of available tools, resources, etc. It can be thought of like a "hint" to the model. For example, this information MAY be added to the system prompt.&#x20;

### `ClientCapabilities`

interface ClientCapabilities \{\
  [experimental](#clientcapabilities-experimental)?: \{ \[key: string]: object };\
  [roots](#clientcapabilities-roots)?: \{ listChanged?: boolean };\
  [sampling](#clientcapabilities-sampling)?: \{ context?: object; tools?: object };\
  [elicitation](#clientcapabilities-elicitation)?: \{ form?: object; url?: object };\
  [tasks](#clientcapabilities-tasks)?: \{\
    list?: object;\
    cancel?: object;\
    requests?: \{\
      sampling?: \{ createMessage?: object };\
      elicitation?: \{ create?: object };\
    };\
  };\
  [extensions](#clientcapabilities-extensions)?: \{ \[key: string]: object };\
}Capabilities a client may support. Known capabilities are defined here, in this schema, but this is not a closed set: any client can define its own, additional capabilities. experimental?: \{ \[key: string]: object }[Permalink](#clientcapabilities-experimental)Experimental, non-standard capabilities that the client supports. roots?: \{ listChanged?: boolean }[Permalink](#clientcapabilities-roots)Present if the client supports listing roots. Type Declaration<ul><li>`Optional`listChanged?: booleanWhether the client supports notifications for changes to the roots list. </li></ul><details><summary>Example: Roots — minimum baseline support[Permalink](#clientcapabilities-example-roots-minimum-baseline-support)</summary><pre id="clientcapabilities-example-roots-minimum-baseline-support">`{  "roots": {}} `Copy</pre> </details><details><summary>Example: Roots — list changed notifications[Permalink](#clientcapabilities-example-roots-list-changed-notifications)</summary><pre id="clientcapabilities-example-roots-list-changed-notifications">`{  "roots": {    "listChanged": true  }} `Copy</pre> </details>sampling?: \{ context?: object; tools?: object }[Permalink](#clientcapabilities-sampling)Present if the client supports sampling from an LLM. Type Declaration<ul><li>`Optional`context?: objectWhether the client supports context inclusion via `includeContext` parameter.
If not declared, servers SHOULD only use `includeContext: "none"` (or omit it). </li><li>`Optional`tools?: objectWhether the client supports tool use via `tools` and `toolChoice` parameters. </li></ul><details><summary>Example: Sampling — minimum baseline support[Permalink](#clientcapabilities-example-sampling-minimum-baseline-support)</summary><pre id="clientcapabilities-example-sampling-minimum-baseline-support">`{  "sampling": {}} `Copy</pre> </details><details><summary>Example: Sampling — tool use support[Permalink](#clientcapabilities-example-sampling-tool-use-support)</summary><pre id="clientcapabilities-example-sampling-tool-use-support">`{  "sampling": {    "tools": {}  }} `Copy</pre> </details><details><summary>Example: Sampling — context inclusion support (soft-deprecated)[Permalink](#clientcapabilities-example-sampling-context-inclusion-support-soft-deprecated)</summary><pre id="clientcapabilities-example-sampling-context-inclusion-support-soft-deprecated">`{  "sampling": {    "context": {}  }} `Copy</pre> </details>elicitation?: \{ form?: object; url?: object }[Permalink](#clientcapabilities-elicitation)Present if the client supports elicitation from the server. <details><summary>Example: Elicitation — form and URL mode support[Permalink](#clientcapabilities-example-elicitation-form-and-url-mode-support)</summary><pre id="clientcapabilities-example-elicitation-form-and-url-mode-support">`{  "elicitation": {    "form": {},    "url": {}  }} `Copy</pre> </details><details><summary>Example: Elicitation — form mode only (implicit)[Permalink](#clientcapabilities-example-elicitation-form-mode-only-implicit)</summary><pre id="clientcapabilities-example-elicitation-form-mode-only-implicit">`{  "elicitation": {}} `Copy</pre> </details>tasks?: \{    list?: object;    cancel?: object;    requests?: \{        sampling?: \{ createMessage?: object };        elicitation?: \{ create?: object };    }; }[Permalink](#clientcapabilities-tasks)Present if the client supports task-augmented requests. Type Declaration<ul><li>`Optional`list?: objectWhether this client supports [tasks/list](#listtasksrequest). </li><li>`Optional`cancel?: objectWhether this client supports [tasks/cancel](#canceltaskrequest). </li><li>`Optional`requests?: \{ sampling?: \{ createMessage?: object }; elicitation?: \{ create?: object } }Specifies which request types can be augmented with tasks. <ul><li>`Optional`sampling?: \{ createMessage?: object }Task support for sampling-related requests. <ul><li>`Optional`createMessage?: objectWhether the client supports task-augmented `sampling/createMessage` requests. </li></ul></li><li>`Optional`elicitation?: \{ create?: object }Task support for elicitation-related requests. <ul><li>`Optional`create?: objectWhether the client supports task-augmented [elicitation/create](#elicitrequest) requests. </li></ul></li></ul></li></ul>extensions?: \{ \[key: string]: object }[Permalink](#clientcapabilities-extensions)Optional MCP extensions that the client supports. Keys are extension identifiers
(e.g., "io.modelcontextprotocol/oauth-client-credentials"), and values are
per-extension settings objects. An empty object indicates support with no settings. <details><summary>Example: Extensions — UI extension with MIME type support[Permalink](#clientcapabilities-example-extensions-ui-extension-with-mime-type-support)</summary><pre id="clientcapabilities-example-extensions-ui-extension-with-mime-type-support">`{  "extensions": {    "io.modelcontextprotocol/apps": {      "mimeTypes": ["text/html;profile=mcp-app"]    }  }} `Copy</pre> </details>

### `Implementation`

interface Implementation \{\
  [icons](#implementation-icons)?: [Icon](#icon)\[];\
  [name](#implementation-name): string;\
  [title](#implementation-title)?: string;\
  [version](#implementation-version): string;\
  [description](#implementation-description)?: string;\
  [websiteUrl](#implementation-websiteurl)?: string;\
}Describes the MCP implementation. icons?: Icon\[][Permalink](#implementation-icons)Optional set of sized icons that the client can display in a user interface. Clients that support rendering icons MUST support at least the following MIME types: <ul> <li>`image/png` - PNG images (safe, universal compatibility)</li> <li>`image/jpeg` (and `image/jpg`) - JPEG images (safe, universal compatibility)</li> </ul> Clients that support rendering icons SHOULD also support: <ul> <li>`image/svg+xml` - SVG images (scalable but requires security precautions)</li> <li>`image/webp` - WebP images (modern, efficient format)</li> </ul> Inherited from Icons.iconsname: string[Permalink](#implementation-name)Intended for programmatic or logical use, but used as a display name in past specs or fallback (if title isn't present). Inherited from BaseMetadata.nametitle?: string[Permalink](#implementation-title)Intended for UI and end-user contexts — optimized to be human-readable and easily understood,
even by those unfamiliar with domain-specific terminology. If not provided, the name should be used for display (except for [Tool](#tool),
where `annotations.title` should be given precedence over using `name`,
if present). Inherited from BaseMetadata.titleversion: string[Permalink](#implementation-version)The version of this implementation. description?: string[Permalink](#implementation-description)An optional human-readable description of what this implementation does. This can be used by clients or servers to provide context about their purpose
and capabilities. For example, a server might describe the types of resources
or tools it provides, while a client might describe its intended use case. websiteUrl?: string[Permalink](#implementation-websiteurl)An optional URL of the website for this implementation.&#x20;

### `ServerCapabilities`

interface ServerCapabilities \{\
  [experimental](#servercapabilities-experimental)?: \{ \[key: string]: object };\
  [logging](#servercapabilities-logging)?: object;\
  [completions](#servercapabilities-completions)?: object;\
  [prompts](#servercapabilities-prompts)?: \{ listChanged?: boolean };\
  [resources](#servercapabilities-resources)?: \{ subscribe?: boolean; listChanged?: boolean };\
  [tools](#servercapabilities-tools)?: \{ listChanged?: boolean };\
  [tasks](#servercapabilities-tasks)?: \{\
    list?: object;\
    cancel?: object;\
    requests?: \{ tools?: \{ call?: object } };\
  };\
  [extensions](#servercapabilities-extensions)?: \{ \[key: string]: object };\
}Capabilities that a server may support. Known capabilities are defined here, in this schema, but this is not a closed set: any server can define its own, additional capabilities. experimental?: \{ \[key: string]: object }[Permalink](#servercapabilities-experimental)Experimental, non-standard capabilities that the server supports. logging?: object[Permalink](#servercapabilities-logging)Present if the server supports sending log messages to the client. <details><summary>Example: Logging — minimum baseline support[Permalink](#servercapabilities-example-logging-minimum-baseline-support)</summary><pre id="servercapabilities-example-logging-minimum-baseline-support">`{  "logging": {}} `Copy</pre> </details>completions?: object[Permalink](#servercapabilities-completions)Present if the server supports argument autocompletion suggestions. <details><summary>Example: Completions — minimum baseline support[Permalink](#servercapabilities-example-completions-minimum-baseline-support)</summary><pre id="servercapabilities-example-completions-minimum-baseline-support">`{  "completions": {}} `Copy</pre> </details>prompts?: \{ listChanged?: boolean }[Permalink](#servercapabilities-prompts)Present if the server offers any prompt templates. Type Declaration<ul><li>`Optional`listChanged?: booleanWhether this server supports notifications for changes to the prompt list. </li></ul><details><summary>Example: Prompts — minimum baseline support[Permalink](#servercapabilities-example-prompts-minimum-baseline-support)</summary><pre id="servercapabilities-example-prompts-minimum-baseline-support">`{  "prompts": {}} `Copy</pre> </details><details><summary>Example: Prompts — list changed notifications[Permalink](#servercapabilities-example-prompts-list-changed-notifications)</summary><pre id="servercapabilities-example-prompts-list-changed-notifications">`{  "prompts": {    "listChanged": true  }} `Copy</pre> </details>resources?: \{ subscribe?: boolean; listChanged?: boolean }[Permalink](#servercapabilities-resources)Present if the server offers any resources to read. Type Declaration<ul><li>`Optional`subscribe?: booleanWhether this server supports subscribing to resource updates. </li><li>`Optional`listChanged?: booleanWhether this server supports notifications for changes to the resource list. </li></ul><details><summary>Example: Resources — minimum baseline support[Permalink](#servercapabilities-example-resources-minimum-baseline-support)</summary><pre id="servercapabilities-example-resources-minimum-baseline-support">`{  "resources": {}} `Copy</pre> </details><details><summary>Example: Resources — subscription to individual resource updates (only)[Permalink](#servercapabilities-example-resources-subscription-to-individual-resource-updates-only)</summary><pre id="servercapabilities-example-resources-subscription-to-individual-resource-updates-only">`{  "resources": {    "subscribe": true  }} `Copy</pre> </details><details><summary>Example: Resources — list changed notifications (only)[Permalink](#servercapabilities-example-resources-list-changed-notifications-only)</summary><pre id="servercapabilities-example-resources-list-changed-notifications-only">`{  "resources": {    "listChanged": true  }} `Copy</pre> </details><details><summary>Example: Resources — all notifications[Permalink](#servercapabilities-example-resources-all-notifications)</summary><pre id="servercapabilities-example-resources-all-notifications">`{  "resources": {    "subscribe": true,    "listChanged": true  }} `Copy</pre> </details>tools?: \{ listChanged?: boolean }[Permalink](#servercapabilities-tools)Present if the server offers any tools to call. Type Declaration<ul><li>`Optional`listChanged?: booleanWhether this server supports notifications for changes to the tool list. </li></ul><details><summary>Example: Tools — minimum baseline support[Permalink](#servercapabilities-example-tools-minimum-baseline-support)</summary><pre id="servercapabilities-example-tools-minimum-baseline-support">`{  "tools": {}} `Copy</pre> </details><details><summary>Example: Tools — list changed notifications[Permalink](#servercapabilities-example-tools-list-changed-notifications)</summary><pre id="servercapabilities-example-tools-list-changed-notifications">`{  "tools": {    "listChanged": true  }} `Copy</pre> </details>tasks?: \{    list?: object;    cancel?: object;    requests?: \{ tools?: \{ call?: object } }; }[Permalink](#servercapabilities-tasks)Present if the server supports task-augmented requests. Type Declaration<ul><li>`Optional`list?: objectWhether this server supports [tasks/list](#listtasksrequest). </li><li>`Optional`cancel?: objectWhether this server supports [tasks/cancel](#canceltaskrequest). </li><li>`Optional`requests?: \{ tools?: \{ call?: object } }Specifies which request types can be augmented with tasks. <ul><li>`Optional`tools?: \{ call?: object }Task support for tool-related requests. <ul><li>`Optional`call?: objectWhether the server supports task-augmented [tools/call](#calltoolrequest) requests. </li></ul></li></ul></li></ul>extensions?: \{ \[key: string]: object }[Permalink](#servercapabilities-extensions)Optional MCP extensions that the server supports. Keys are extension identifiers
(e.g., "io.modelcontextprotocol/apps"), and values are per-extension settings
objects. An empty object indicates support with no settings. <details><summary>Example: Extensions — UI extension support[Permalink](#servercapabilities-example-extensions-ui-extension-support)</summary><pre id="servercapabilities-example-extensions-ui-extension-support">`{  "extensions": {    "io.modelcontextprotocol/apps": {}  }} `Copy</pre> </details>

## `logging/setLevel`

### `SetLevelRequest`

interface SetLevelRequest \{\
  [jsonrpc](#setlevelrequest-jsonrpc): "2.0";\
  [id](#setlevelrequest-id): [RequestId](#requestid);\
  [method](#setlevelrequest-method): "logging/setLevel";\
  [params](#setlevelrequest-params): [SetLevelRequestParams](#setlevelrequestparams);\
}A request from the client to the server, to enable or adjust logging. <details><summary>Example: Set logging level request[Permalink](#setlevelrequest-example-set-logging-level-request)</summary><pre id="setlevelrequest-example-set-logging-level-request">`{  "jsonrpc": "2.0",  "id": "set-logging-level-example",  "method": "logging/setLevel",  "params": {    "level": "info"  }} `Copy</pre> </details>jsonrpc: "2.0"[Permalink](#setlevelrequest-jsonrpc)Inherited from [JSONRPCRequest](#jsonrpcrequest).[jsonrpc](#jsonrpcrequest-jsonrpc)id: RequestId[Permalink](#setlevelrequest-id)Inherited from [JSONRPCRequest](#jsonrpcrequest).[id](#jsonrpcrequest-id)method: "logging/setLevel"[Permalink](#setlevelrequest-method)Overrides [JSONRPCRequest](#jsonrpcrequest).[method](#jsonrpcrequest-method)params: SetLevelRequestParams[Permalink](#setlevelrequest-params)Overrides [JSONRPCRequest](#jsonrpcrequest).[params](#jsonrpcrequest-params)

### `SetLevelRequestParams`

interface SetLevelRequestParams \{\
  [\_meta](#setlevelrequestparams-_meta)?: [RequestMetaObject](#requestmetaobject);\
  [level](#setlevelrequestparams-level): [LoggingLevel](#logginglevel);\
}Parameters for a `logging/setLevel` request. <details><summary>Example: Set log level to "info"[Permalink](#setlevelrequestparams-example-set-log-level-to-info)</summary><pre id="setlevelrequestparams-example-set-log-level-to-info">`{  "level": "info"} `Copy</pre> </details>\_meta?: RequestMetaObject[Permalink](#setlevelrequestparams-_meta)Inherited from [RequestParams](#requestparams).[\_meta](#requestparams-_meta)level: LoggingLevel[Permalink](#setlevelrequestparams-level)The level of logging that the client wants to receive from the server. The server should send all logs at this level and higher (i.e., more severe) to the client as [notifications/message](#loggingmessagenotification).&#x20;

### `SetLevelResultResponse`

interface SetLevelResultResponse \{\
  [jsonrpc](#setlevelresultresponse-jsonrpc): "2.0";\
  [id](#setlevelresultresponse-id): [RequestId](#requestid);\
  [result](#setlevelresultresponse-result): [Result](#result);\
}A successful response from the server for a [logging/setLevel](#setlevelrequest) request. <details><summary>Example: Set logging level result response[Permalink](#setlevelresultresponse-example-set-logging-level-result-response)</summary><pre id="setlevelresultresponse-example-set-logging-level-result-response">`{  "jsonrpc": "2.0",  "id": "set-logging-level-example",  "result": {}} `Copy</pre> </details>jsonrpc: "2.0"[Permalink](#setlevelresultresponse-jsonrpc)Inherited from [JSONRPCResultResponse](#jsonrpcresultresponse).[jsonrpc](#jsonrpcresultresponse-jsonrpc)id: RequestId[Permalink](#setlevelresultresponse-id)Inherited from [JSONRPCResultResponse](#jsonrpcresultresponse).[id](#jsonrpcresultresponse-id)result: Result[Permalink](#setlevelresultresponse-result)Overrides [JSONRPCResultResponse](#jsonrpcresultresponse).[result](#jsonrpcresultresponse-result)

## `notifications/cancelled`

### `CancelledNotification`

interface CancelledNotification \{\
  [jsonrpc](#cancellednotification-jsonrpc): "2.0";\
  [method](#cancellednotification-method): "notifications/cancelled";\
  [params](#cancellednotification-params): [CancelledNotificationParams](#cancellednotificationparams);\
}This notification can be sent by either side to indicate that it is cancelling a previously-issued request. The request SHOULD still be in-flight, but due to communication latency, it is always possible that this notification MAY arrive after the request has already finished. This notification indicates that the result will be unused, so any associated processing SHOULD cease. A client MUST NOT attempt to cancel its `initialize` request. For task cancellation, use the [tasks/cancel](#canceltaskrequest) request instead of this notification. <details><summary>Example: User-requested cancellation[Permalink](#cancellednotification-example-user-requested-cancellation)</summary><pre id="cancellednotification-example-user-requested-cancellation">`{  "jsonrpc": "2.0",  "method": "notifications/cancelled",  "params": {    "requestId": "123",    "reason": "User requested cancellation"  }} `Copy</pre> </details>jsonrpc: "2.0"[Permalink](#cancellednotification-jsonrpc)Inherited from [JSONRPCNotification](#jsonrpcnotification).[jsonrpc](#jsonrpcnotification-jsonrpc)method: "notifications/cancelled"[Permalink](#cancellednotification-method)Overrides [JSONRPCNotification](#jsonrpcnotification).[method](#jsonrpcnotification-method)params: CancelledNotificationParams[Permalink](#cancellednotification-params)Overrides [JSONRPCNotification](#jsonrpcnotification).[params](#jsonrpcnotification-params)

### `CancelledNotificationParams`

interface CancelledNotificationParams \{\
  [\_meta](#cancellednotificationparams-_meta)?: [MetaObject](#metaobject);\
  [requestId](#cancellednotificationparams-requestid)?: [RequestId](#requestid);\
  [reason](#cancellednotificationparams-reason)?: string;\
}Parameters for a `notifications/cancelled` notification. <details><summary>Example: User-requested cancellation[Permalink](#cancellednotificationparams-example-user-requested-cancellation)</summary><pre id="cancellednotificationparams-example-user-requested-cancellation">`{  "requestId": "123",  "reason": "User requested cancellation"} `Copy</pre> </details>\_meta?: MetaObject[Permalink](#cancellednotificationparams-_meta)Inherited from [NotificationParams](#notificationparams).[\_meta](#notificationparams-_meta)requestId?: RequestId[Permalink](#cancellednotificationparams-requestid)The ID of the request to cancel. This MUST correspond to the ID of a request previously issued in the same direction.
This MUST be provided for cancelling non-task requests.
This MUST NOT be used for cancelling tasks (use the [tasks/cancel](#canceltaskrequest) request instead). reason?: string[Permalink](#cancellednotificationparams-reason)An optional string describing the reason for the cancellation. This MAY be logged or presented to the user.&#x20;

## `notifications/initialized`

### `InitializedNotification`

interface InitializedNotification \{\
  [jsonrpc](#initializednotification-jsonrpc): "2.0";\
  [method](#initializednotification-method): "notifications/initialized";\
  [params](#initializednotification-params)?: [NotificationParams](#notificationparams);\
}This notification is sent from the client to the server after initialization has finished. <details><summary>Example: Initialized notification[Permalink](#initializednotification-example-initialized-notification)</summary><pre id="initializednotification-example-initialized-notification">`{  "jsonrpc": "2.0",  "method": "notifications/initialized"} `Copy</pre> </details>jsonrpc: "2.0"[Permalink](#initializednotification-jsonrpc)Inherited from [JSONRPCNotification](#jsonrpcnotification).[jsonrpc](#jsonrpcnotification-jsonrpc)method: "notifications/initialized"[Permalink](#initializednotification-method)Overrides [JSONRPCNotification](#jsonrpcnotification).[method](#jsonrpcnotification-method)params?: NotificationParams[Permalink](#initializednotification-params)Overrides [JSONRPCNotification](#jsonrpcnotification).[params](#jsonrpcnotification-params)

## `notifications/tasks/status`

### `TaskStatusNotification`

interface TaskStatusNotification \{\
  [jsonrpc](#taskstatusnotification-jsonrpc): "2.0";\
  [method](#taskstatusnotification-method): "notifications/tasks/status";\
  [params](#taskstatusnotification-params): [TaskStatusNotificationParams](#taskstatusnotificationparams);\
}An optional notification from the receiver to the requestor, informing them that a task's status has changed. Receivers are not required to send these notifications. jsonrpc: "2.0"[Permalink](#taskstatusnotification-jsonrpc)Inherited from [JSONRPCNotification](#jsonrpcnotification).[jsonrpc](#jsonrpcnotification-jsonrpc)method: "notifications/tasks/status"[Permalink](#taskstatusnotification-method)Overrides [JSONRPCNotification](#jsonrpcnotification).[method](#jsonrpcnotification-method)params: TaskStatusNotificationParams[Permalink](#taskstatusnotification-params)Overrides [JSONRPCNotification](#jsonrpcnotification).[params](#jsonrpcnotification-params)

### `TaskStatusNotificationParams`

TaskStatusNotificationParams: [NotificationParams](#notificationparams) & [Task](#task)Parameters for a `notifications/tasks/status` notification.&#x20;

## `notifications/message`

### `LoggingMessageNotification`

interface LoggingMessageNotification \{\
  [jsonrpc](#loggingmessagenotification-jsonrpc): "2.0";\
  [method](#loggingmessagenotification-method): "notifications/message";\
  [params](#loggingmessagenotification-params): [LoggingMessageNotificationParams](#loggingmessagenotificationparams);\
}JSONRPCNotification of a log message passed from server to client. If no `logging/setLevel` request has been sent from the client, the server MAY decide which messages to send automatically. <details><summary>Example: Log database connection failed[Permalink](#loggingmessagenotification-example-log-database-connection-failed)</summary><pre id="loggingmessagenotification-example-log-database-connection-failed">`{  "jsonrpc": "2.0",  "method": "notifications/message",  "params": {    "level": "error",    "logger": "database",    "data": {      "error": "Connection failed",      "details": {        "host": "localhost",        "port": 5432      }    }  }} `Copy</pre> </details>jsonrpc: "2.0"[Permalink](#loggingmessagenotification-jsonrpc)Inherited from [JSONRPCNotification](#jsonrpcnotification).[jsonrpc](#jsonrpcnotification-jsonrpc)method: "notifications/message"[Permalink](#loggingmessagenotification-method)Overrides [JSONRPCNotification](#jsonrpcnotification).[method](#jsonrpcnotification-method)params: LoggingMessageNotificationParams[Permalink](#loggingmessagenotification-params)Overrides [JSONRPCNotification](#jsonrpcnotification).[params](#jsonrpcnotification-params)

### `LoggingMessageNotificationParams`

interface LoggingMessageNotificationParams \{\
  [\_meta](#loggingmessagenotificationparams-_meta)?: [MetaObject](#metaobject);\
  [level](#loggingmessagenotificationparams-level): [LoggingLevel](#logginglevel);\
  [logger](#loggingmessagenotificationparams-logger)?: string;\
  [data](#loggingmessagenotificationparams-data): unknown;\
}Parameters for a `notifications/message` notification. <details><summary>Example: Log database connection failed[Permalink](#loggingmessagenotificationparams-example-log-database-connection-failed)</summary><pre id="loggingmessagenotificationparams-example-log-database-connection-failed">`{  "level": "error",  "logger": "database",  "data": {    "error": "Connection failed",    "details": {      "host": "localhost",      "port": 5432    }  }} `Copy</pre> </details>\_meta?: MetaObject[Permalink](#loggingmessagenotificationparams-_meta)Inherited from [NotificationParams](#notificationparams).[\_meta](#notificationparams-_meta)level: LoggingLevel[Permalink](#loggingmessagenotificationparams-level)The severity of this log message. logger?: string[Permalink](#loggingmessagenotificationparams-logger)An optional name of the logger issuing this message. data: unknown[Permalink](#loggingmessagenotificationparams-data)The data to be logged, such as a string message or an object. Any JSON serializable type is allowed here.&#x20;

## `notifications/progress`

### `ProgressNotification`

interface ProgressNotification \{\
  [jsonrpc](#progressnotification-jsonrpc): "2.0";\
  [method](#progressnotification-method): "notifications/progress";\
  [params](#progressnotification-params): [ProgressNotificationParams](#progressnotificationparams);\
}An out-of-band notification used to inform the receiver of a progress update for a long-running request. <details><summary>Example: Progress message[Permalink](#progressnotification-example-progress-message)</summary><pre id="progressnotification-example-progress-message">`{  "jsonrpc": "2.0",  "method": "notifications/progress",  "params": {    "progressToken": "oivaizmir",    "progress": 50,    "total": 100,    "message": "Reticulating splines..."  }} `Copy</pre> </details>jsonrpc: "2.0"[Permalink](#progressnotification-jsonrpc)Inherited from [JSONRPCNotification](#jsonrpcnotification).[jsonrpc](#jsonrpcnotification-jsonrpc)method: "notifications/progress"[Permalink](#progressnotification-method)Overrides [JSONRPCNotification](#jsonrpcnotification).[method](#jsonrpcnotification-method)params: ProgressNotificationParams[Permalink](#progressnotification-params)Overrides [JSONRPCNotification](#jsonrpcnotification).[params](#jsonrpcnotification-params)

### `ProgressNotificationParams`

interface ProgressNotificationParams \{\
  [\_meta](#progressnotificationparams-_meta)?: [MetaObject](#metaobject);\
  [progressToken](#progressnotificationparams-progresstoken): [ProgressToken](#progresstoken);\
  [progress](#progressnotificationparams-progress): number;\
  [total](#progressnotificationparams-total)?: number;\
  [message](#progressnotificationparams-message)?: string;\
}Parameters for a [notifications/progress](#progressnotification) notification. <details><summary>Example: Progress message[Permalink](#progressnotificationparams-example-progress-message)</summary><pre id="progressnotificationparams-example-progress-message">`{  "progressToken": "oivaizmir",  "progress": 50,  "total": 100,  "message": "Reticulating splines..."} `Copy</pre> </details>\_meta?: MetaObject[Permalink](#progressnotificationparams-_meta)Inherited from [NotificationParams](#notificationparams).[\_meta](#notificationparams-_meta)progressToken: ProgressToken[Permalink](#progressnotificationparams-progresstoken)The progress token which was given in the initial request, used to associate this notification with the request that is proceeding. progress: number[Permalink](#progressnotificationparams-progress)The progress thus far. This should increase every time progress is made, even if the total is unknown. total?: number[Permalink](#progressnotificationparams-total)Total number of items to process (or total progress required), if known. message?: string[Permalink](#progressnotificationparams-message)An optional message describing the current progress.&#x20;

## `notifications/prompts/list_changed`

### `PromptListChangedNotification`

interface PromptListChangedNotification \{\
  [jsonrpc](#promptlistchangednotification-jsonrpc): "2.0";\
  [method](#promptlistchangednotification-method): "notifications/prompts/list\_changed";\
  [params](#promptlistchangednotification-params)?: [NotificationParams](#notificationparams);\
}An optional notification from the server to the client, informing it that the list of prompts it offers has changed. This may be issued by servers without any previous subscription from the client. <details><summary>Example: Prompts list changed[Permalink](#promptlistchangednotification-example-prompts-list-changed)</summary><pre id="promptlistchangednotification-example-prompts-list-changed">`{  "jsonrpc": "2.0",  "method": "notifications/prompts/list_changed"} `Copy</pre> </details>jsonrpc: "2.0"[Permalink](#promptlistchangednotification-jsonrpc)Inherited from [JSONRPCNotification](#jsonrpcnotification).[jsonrpc](#jsonrpcnotification-jsonrpc)method: "notifications/prompts/list\_changed"[Permalink](#promptlistchangednotification-method)Overrides [JSONRPCNotification](#jsonrpcnotification).[method](#jsonrpcnotification-method)params?: NotificationParams[Permalink](#promptlistchangednotification-params)Overrides [JSONRPCNotification](#jsonrpcnotification).[params](#jsonrpcnotification-params)

## `notifications/resources/list_changed`

### `ResourceListChangedNotification`

interface ResourceListChangedNotification \{\
  [jsonrpc](#resourcelistchangednotification-jsonrpc): "2.0";\
  [method](#resourcelistchangednotification-method): "notifications/resources/list\_changed";\
  [params](#resourcelistchangednotification-params)?: [NotificationParams](#notificationparams);\
}An optional notification from the server to the client, informing it that the list of resources it can read from has changed. This may be issued by servers without any previous subscription from the client. <details><summary>Example: Resources list changed[Permalink](#resourcelistchangednotification-example-resources-list-changed)</summary><pre id="resourcelistchangednotification-example-resources-list-changed">`{  "jsonrpc": "2.0",  "method": "notifications/resources/list_changed"} `Copy</pre> </details>jsonrpc: "2.0"[Permalink](#resourcelistchangednotification-jsonrpc)Inherited from [JSONRPCNotification](#jsonrpcnotification).[jsonrpc](#jsonrpcnotification-jsonrpc)method: "notifications/resources/list\_changed"[Permalink](#resourcelistchangednotification-method)Overrides [JSONRPCNotification](#jsonrpcnotification).[method](#jsonrpcnotification-method)params?: NotificationParams[Permalink](#resourcelistchangednotification-params)Overrides [JSONRPCNotification](#jsonrpcnotification).[params](#jsonrpcnotification-params)

## `notifications/resources/updated`

### `ResourceUpdatedNotification`

interface ResourceUpdatedNotification \{\
  [jsonrpc](#resourceupdatednotification-jsonrpc): "2.0";\
  [method](#resourceupdatednotification-method): "notifications/resources/updated";\
  [params](#resourceupdatednotification-params): [ResourceUpdatedNotificationParams](#resourceupdatednotificationparams);\
}A notification from the server to the client, informing it that a resource has changed and may need to be read again. This should only be sent if the client previously sent a [resources/subscribe](#subscriberequest) request. <details><summary>Example: File resource updated notification[Permalink](#resourceupdatednotification-example-file-resource-updated-notification)</summary><pre id="resourceupdatednotification-example-file-resource-updated-notification">`{  "jsonrpc": "2.0",  "method": "notifications/resources/updated",  "params": {    "uri": "file:///project/src/main.rs"  }} `Copy</pre> </details>jsonrpc: "2.0"[Permalink](#resourceupdatednotification-jsonrpc)Inherited from [JSONRPCNotification](#jsonrpcnotification).[jsonrpc](#jsonrpcnotification-jsonrpc)method: "notifications/resources/updated"[Permalink](#resourceupdatednotification-method)Overrides [JSONRPCNotification](#jsonrpcnotification).[method](#jsonrpcnotification-method)params: ResourceUpdatedNotificationParams[Permalink](#resourceupdatednotification-params)Overrides [JSONRPCNotification](#jsonrpcnotification).[params](#jsonrpcnotification-params)

### `ResourceUpdatedNotificationParams`

interface ResourceUpdatedNotificationParams \{\
  [\_meta](#resourceupdatednotificationparams-_meta)?: [MetaObject](#metaobject);\
  [uri](#resourceupdatednotificationparams-uri): string;\
}Parameters for a `notifications/resources/updated` notification. <details><summary>Example: File resource updated[Permalink](#resourceupdatednotificationparams-example-file-resource-updated)</summary><pre id="resourceupdatednotificationparams-example-file-resource-updated">`{  "uri": "file:///project/src/main.rs"} `Copy</pre> </details>\_meta?: MetaObject[Permalink](#resourceupdatednotificationparams-_meta)Inherited from [NotificationParams](#notificationparams).[\_meta](#notificationparams-_meta)uri: string[Permalink](#resourceupdatednotificationparams-uri)The URI of the resource that has been updated. This might be a sub-resource of the one that the client actually subscribed to.&#x20;

## `notifications/roots/list_changed`

### `RootsListChangedNotification`

interface RootsListChangedNotification \{\
  [jsonrpc](#rootslistchangednotification-jsonrpc): "2.0";\
  [method](#rootslistchangednotification-method): "notifications/roots/list\_changed";\
  [params](#rootslistchangednotification-params)?: [NotificationParams](#notificationparams);\
}A notification from the client to the server, informing it that the list of roots has changed.
This notification should be sent whenever the client adds, removes, or modifies any root.
The server should then request an updated list of roots using the [ListRootsRequest](#listrootsrequest). <details><summary>Example: Roots list changed[Permalink](#rootslistchangednotification-example-roots-list-changed)</summary><pre id="rootslistchangednotification-example-roots-list-changed">`{  "jsonrpc": "2.0",  "method": "notifications/roots/list_changed"} `Copy</pre> </details>jsonrpc: "2.0"[Permalink](#rootslistchangednotification-jsonrpc)Inherited from [JSONRPCNotification](#jsonrpcnotification).[jsonrpc](#jsonrpcnotification-jsonrpc)method: "notifications/roots/list\_changed"[Permalink](#rootslistchangednotification-method)Overrides [JSONRPCNotification](#jsonrpcnotification).[method](#jsonrpcnotification-method)params?: NotificationParams[Permalink](#rootslistchangednotification-params)Overrides [JSONRPCNotification](#jsonrpcnotification).[params](#jsonrpcnotification-params)

## `notifications/tools/list_changed`

### `ToolListChangedNotification`

interface ToolListChangedNotification \{\
  [jsonrpc](#toollistchangednotification-jsonrpc): "2.0";\
  [method](#toollistchangednotification-method): "notifications/tools/list\_changed";\
  [params](#toollistchangednotification-params)?: [NotificationParams](#notificationparams);\
}An optional notification from the server to the client, informing it that the list of tools it offers has changed. This may be issued by servers without any previous subscription from the client. <details><summary>Example: Tools list changed[Permalink](#toollistchangednotification-example-tools-list-changed)</summary><pre id="toollistchangednotification-example-tools-list-changed">`{  "jsonrpc": "2.0",  "method": "notifications/tools/list_changed"} `Copy</pre> </details>jsonrpc: "2.0"[Permalink](#toollistchangednotification-jsonrpc)Inherited from [JSONRPCNotification](#jsonrpcnotification).[jsonrpc](#jsonrpcnotification-jsonrpc)method: "notifications/tools/list\_changed"[Permalink](#toollistchangednotification-method)Overrides [JSONRPCNotification](#jsonrpcnotification).[method](#jsonrpcnotification-method)params?: NotificationParams[Permalink](#toollistchangednotification-params)Overrides [JSONRPCNotification](#jsonrpcnotification).[params](#jsonrpcnotification-params)

## `notifications/elicitation/complete`

### `ElicitationCompleteNotification`

interface ElicitationCompleteNotification \{\
  [jsonrpc](#elicitationcompletenotification-jsonrpc): "2.0";\
  [method](#elicitationcompletenotification-method): "notifications/elicitation/complete";\
  [params](#elicitationcompletenotification-params): \{ elicitationId: string };\
}An optional notification from the server to the client, informing it of a completion of a out-of-band elicitation request. <details><summary>Example: Elicitation complete[Permalink](#elicitationcompletenotification-example-elicitation-complete)</summary><pre id="elicitationcompletenotification-example-elicitation-complete">`{  "jsonrpc": "2.0",  "method": "notifications/elicitation/complete",  "params": {    "elicitationId": "550e8400-e29b-41d4-a716-446655440000"  }} `Copy</pre> </details>jsonrpc: "2.0"[Permalink](#elicitationcompletenotification-jsonrpc)Inherited from [JSONRPCNotification](#jsonrpcnotification).[jsonrpc](#jsonrpcnotification-jsonrpc)method: "notifications/elicitation/complete"[Permalink](#elicitationcompletenotification-method)Overrides [JSONRPCNotification](#jsonrpcnotification).[method](#jsonrpcnotification-method)params: \{ elicitationId: string }[Permalink](#elicitationcompletenotification-params)Type Declaration<ul><li>elicitationId: stringThe ID of the elicitation that completed. </li></ul>Overrides [JSONRPCNotification](#jsonrpcnotification).[params](#jsonrpcnotification-params)

## `ping`

### `PingRequest`

interface PingRequest \{\
  [jsonrpc](#pingrequest-jsonrpc): "2.0";\
  [id](#pingrequest-id): [RequestId](#requestid);\
  [method](#pingrequest-method): "ping";\
  [params](#pingrequest-params)?: [RequestParams](#requestparams);\
}A ping, issued by either the server or the client, to check that the other party is still alive. The receiver must promptly respond, or else may be disconnected. <details><summary>Example: Ping request[Permalink](#pingrequest-example-ping-request)</summary><pre id="pingrequest-example-ping-request">`{  "jsonrpc": "2.0",  "id": "ping-example",  "method": "ping"} `Copy</pre> </details>jsonrpc: "2.0"[Permalink](#pingrequest-jsonrpc)Inherited from [JSONRPCRequest](#jsonrpcrequest).[jsonrpc](#jsonrpcrequest-jsonrpc)id: RequestId[Permalink](#pingrequest-id)Inherited from [JSONRPCRequest](#jsonrpcrequest).[id](#jsonrpcrequest-id)method: "ping"[Permalink](#pingrequest-method)Overrides [JSONRPCRequest](#jsonrpcrequest).[method](#jsonrpcrequest-method)params?: RequestParams[Permalink](#pingrequest-params)Overrides [JSONRPCRequest](#jsonrpcrequest).[params](#jsonrpcrequest-params)

### `PingResultResponse`

interface PingResultResponse \{\
  [jsonrpc](#pingresultresponse-jsonrpc): "2.0";\
  [id](#pingresultresponse-id): [RequestId](#requestid);\
  [result](#pingresultresponse-result): [Result](#result);\
}A successful response for a [ping](#pingrequest) request. <details><summary>Example: Ping result response[Permalink](#pingresultresponse-example-ping-result-response)</summary><pre id="pingresultresponse-example-ping-result-response">`{  "jsonrpc": "2.0",  "id": "ping-example",  "result": {}} `Copy</pre> </details>jsonrpc: "2.0"[Permalink](#pingresultresponse-jsonrpc)Inherited from [JSONRPCResultResponse](#jsonrpcresultresponse).[jsonrpc](#jsonrpcresultresponse-jsonrpc)id: RequestId[Permalink](#pingresultresponse-id)Inherited from [JSONRPCResultResponse](#jsonrpcresultresponse).[id](#jsonrpcresultresponse-id)result: Result[Permalink](#pingresultresponse-result)Overrides [JSONRPCResultResponse](#jsonrpcresultresponse).[result](#jsonrpcresultresponse-result)

## `tasks`

### `CreateTaskResultResponse`

interface CreateTaskResultResponse \{\
  [jsonrpc](#createtaskresultresponse-jsonrpc): "2.0";\
  [id](#createtaskresultresponse-id): [RequestId](#requestid);\
  [result](#createtaskresultresponse-result): [CreateTaskResult](#createtaskresult);\
}A successful response for a task-augmented request. jsonrpc: "2.0"[Permalink](#createtaskresultresponse-jsonrpc)Inherited from [JSONRPCResultResponse](#jsonrpcresultresponse).[jsonrpc](#jsonrpcresultresponse-jsonrpc)id: RequestId[Permalink](#createtaskresultresponse-id)Inherited from [JSONRPCResultResponse](#jsonrpcresultresponse).[id](#jsonrpcresultresponse-id)result: CreateTaskResult[Permalink](#createtaskresultresponse-result)Overrides [JSONRPCResultResponse](#jsonrpcresultresponse).[result](#jsonrpcresultresponse-result)

### `CreateTaskResult`

interface CreateTaskResult \{\
  [\_meta](#createtaskresult-_meta)?: [MetaObject](#metaobject);\
  [task](#createtaskresult-task): [Task](#task);\
  \[key: string]: unknown;\
}The result returned for a task-augmented request. \_meta?: MetaObject[Permalink](#createtaskresult-_meta)Inherited from [Result](#result).[\_meta](#result-_meta)task: Task[Permalink](#createtaskresult-task)

### `RelatedTaskMetadata`

interface RelatedTaskMetadata \{\
  [taskId](#relatedtaskmetadata-taskid): string;\
}Metadata for associating messages with a task.
Include this in the `_meta` field under the key `io.modelcontextprotocol/related-task`. taskId: string[Permalink](#relatedtaskmetadata-taskid)The task identifier this message is associated with.&#x20;

### `Task`

interface Task \{\
  [taskId](#task-taskid): string;\
  [status](#task-status): [TaskStatus](#taskstatus);\
  [statusMessage](#task-statusmessage)?: string;\
  [createdAt](#task-createdat): string;\
  [lastUpdatedAt](#task-lastupdatedat): string;\
  [ttl](#task-ttl): number | null;\
  [pollInterval](#task-pollinterval)?: number;\
}Data associated with a task. taskId: string[Permalink](#task-taskid)The task identifier. status: TaskStatus[Permalink](#task-status)Current task state. statusMessage?: string[Permalink](#task-statusmessage)Optional human-readable message describing the current task state.
This can provide context for any status, including: <ul> <li>Reasons for "cancelled" status</li> <li>Summaries for "completed" status</li> <li>Diagnostic information for "failed" status (e.g., error details, what went wrong)</li> </ul> createdAt: string[Permalink](#task-createdat)ISO 8601 timestamp when the task was created. lastUpdatedAt: string[Permalink](#task-lastupdatedat)ISO 8601 timestamp when the task was last updated. ttl: number | null[Permalink](#task-ttl)Actual retention duration from creation in milliseconds, null for unlimited. pollInterval?: number[Permalink](#task-pollinterval)Suggested polling interval in milliseconds.&#x20;

### `TaskMetadata`

interface TaskMetadata \{\
  [ttl](#taskmetadata-ttl)?: number;\
}Metadata for augmenting a request with task execution.
Include this in the `task` field of the request parameters. ttl?: number[Permalink](#taskmetadata-ttl)Requested duration in milliseconds to retain task from creation.&#x20;

### `TaskStatus`

TaskStatus: "working" | "input\_required" | "completed" | "failed" | "cancelled"The status of a task.&#x20;

## `tasks/get`

### `GetTaskRequest`

interface GetTaskRequest \{\
  [jsonrpc](#gettaskrequest-jsonrpc): "2.0";\
  [id](#gettaskrequest-id): [RequestId](#requestid);\
  [method](#gettaskrequest-method): "tasks/get";\
  [params](#gettaskrequest-params): \{ taskId: string };\
}A request to retrieve the state of a task. jsonrpc: "2.0"[Permalink](#gettaskrequest-jsonrpc)Inherited from [JSONRPCRequest](#jsonrpcrequest).[jsonrpc](#jsonrpcrequest-jsonrpc)id: RequestId[Permalink](#gettaskrequest-id)Inherited from [JSONRPCRequest](#jsonrpcrequest).[id](#jsonrpcrequest-id)method: "tasks/get"[Permalink](#gettaskrequest-method)Overrides [JSONRPCRequest](#jsonrpcrequest).[method](#jsonrpcrequest-method)params: \{ taskId: string }[Permalink](#gettaskrequest-params)Type Declaration<ul><li>taskId: stringThe task identifier to query. </li></ul>Overrides [JSONRPCRequest](#jsonrpcrequest).[params](#jsonrpcrequest-params)

### `GetTaskResultResponse`

interface GetTaskResultResponse \{\
  [jsonrpc](#gettaskresultresponse-jsonrpc): "2.0";\
  [id](#gettaskresultresponse-id): [RequestId](#requestid);\
  [result](#gettaskresultresponse-result): [GetTaskResult](#gettaskresult);\
}A successful response for a [tasks/get](#gettaskrequest) request. jsonrpc: "2.0"[Permalink](#gettaskresultresponse-jsonrpc)Inherited from [JSONRPCResultResponse](#jsonrpcresultresponse).[jsonrpc](#jsonrpcresultresponse-jsonrpc)id: RequestId[Permalink](#gettaskresultresponse-id)Inherited from [JSONRPCResultResponse](#jsonrpcresultresponse).[id](#jsonrpcresultresponse-id)result: GetTaskResult[Permalink](#gettaskresultresponse-result)Overrides [JSONRPCResultResponse](#jsonrpcresultresponse).[result](#jsonrpcresultresponse-result)

### `GetTaskResult`

GetTaskResult: [Result](#result) & [Task](#task)The result returned for a [tasks/get](#gettaskrequest) request.&#x20;

## `tasks/result`

### `GetTaskPayloadRequest`

interface GetTaskPayloadRequest \{\
  [jsonrpc](#gettaskpayloadrequest-jsonrpc): "2.0";\
  [id](#gettaskpayloadrequest-id): [RequestId](#requestid);\
  [method](#gettaskpayloadrequest-method): "tasks/result";\
  [params](#gettaskpayloadrequest-params): \{ taskId: string };\
}A request to retrieve the result of a completed task. jsonrpc: "2.0"[Permalink](#gettaskpayloadrequest-jsonrpc)Inherited from [JSONRPCRequest](#jsonrpcrequest).[jsonrpc](#jsonrpcrequest-jsonrpc)id: RequestId[Permalink](#gettaskpayloadrequest-id)Inherited from [JSONRPCRequest](#jsonrpcrequest).[id](#jsonrpcrequest-id)method: "tasks/result"[Permalink](#gettaskpayloadrequest-method)Overrides [JSONRPCRequest](#jsonrpcrequest).[method](#jsonrpcrequest-method)params: \{ taskId: string }[Permalink](#gettaskpayloadrequest-params)Type Declaration<ul><li>taskId: stringThe task identifier to retrieve results for. </li></ul>Overrides [JSONRPCRequest](#jsonrpcrequest).[params](#jsonrpcrequest-params)

### `GetTaskPayloadResultResponse`

interface GetTaskPayloadResultResponse \{\
  [jsonrpc](#gettaskpayloadresultresponse-jsonrpc): "2.0";\
  [id](#gettaskpayloadresultresponse-id): [RequestId](#requestid);\
  [result](#gettaskpayloadresultresponse-result): [GetTaskPayloadResult](#gettaskpayloadresult);\
}A successful response for a [tasks/result](#gettaskpayloadrequest) request. jsonrpc: "2.0"[Permalink](#gettaskpayloadresultresponse-jsonrpc)Inherited from [JSONRPCResultResponse](#jsonrpcresultresponse).[jsonrpc](#jsonrpcresultresponse-jsonrpc)id: RequestId[Permalink](#gettaskpayloadresultresponse-id)Inherited from [JSONRPCResultResponse](#jsonrpcresultresponse).[id](#jsonrpcresultresponse-id)result: GetTaskPayloadResult[Permalink](#gettaskpayloadresultresponse-result)Overrides [JSONRPCResultResponse](#jsonrpcresultresponse).[result](#jsonrpcresultresponse-result)

### `GetTaskPayloadResult`

interface GetTaskPayloadResult \{\
  [\_meta](#gettaskpayloadresult-_meta)?: [MetaObject](#metaobject);\
  \[key: string]: unknown;\
}The result returned for a [tasks/result](#gettaskpayloadrequest) request.
The structure matches the result type of the original request.
For example, a [tools/call](#calltoolrequest) task would return the [CallToolResult](#calltoolresult) structure. \_meta?: MetaObject[Permalink](#gettaskpayloadresult-_meta)Inherited from [Result](#result).[\_meta](#result-_meta)

## `tasks/list`

### `ListTasksRequest`

interface ListTasksRequest \{\
  [jsonrpc](#listtasksrequest-jsonrpc): "2.0";\
  [id](#listtasksrequest-id): [RequestId](#requestid);\
  [params](#listtasksrequest-params)?: [PaginatedRequestParams](#paginatedrequestparams);\
  [method](#listtasksrequest-method): "tasks/list";\
}A request to retrieve a list of tasks. jsonrpc: "2.0"[Permalink](#listtasksrequest-jsonrpc)Inherited from PaginatedRequest.jsonrpcid: RequestId[Permalink](#listtasksrequest-id)Inherited from PaginatedRequest.idparams?: PaginatedRequestParams[Permalink](#listtasksrequest-params)Inherited from PaginatedRequest.paramsmethod: "tasks/list"[Permalink](#listtasksrequest-method)Overrides PaginatedRequest.method

### `ListTasksResultResponse`

interface ListTasksResultResponse \{\
  [jsonrpc](#listtasksresultresponse-jsonrpc): "2.0";\
  [id](#listtasksresultresponse-id): [RequestId](#requestid);\
  [result](#listtasksresultresponse-result): [ListTasksResult](#listtasksresult);\
}A successful response for a [tasks/list](#listtasksrequest) request. jsonrpc: "2.0"[Permalink](#listtasksresultresponse-jsonrpc)Inherited from [JSONRPCResultResponse](#jsonrpcresultresponse).[jsonrpc](#jsonrpcresultresponse-jsonrpc)id: RequestId[Permalink](#listtasksresultresponse-id)Inherited from [JSONRPCResultResponse](#jsonrpcresultresponse).[id](#jsonrpcresultresponse-id)result: ListTasksResult[Permalink](#listtasksresultresponse-result)Overrides [JSONRPCResultResponse](#jsonrpcresultresponse).[result](#jsonrpcresultresponse-result)

### `ListTasksResult`

interface ListTasksResult \{\
  [\_meta](#listtasksresult-_meta)?: [MetaObject](#metaobject);\
  [nextCursor](#listtasksresult-nextcursor)?: string;\
  [tasks](#listtasksresult-tasks): [Task](#task)\[];\
  \[key: string]: unknown;\
}The result returned for a [tasks/list](#listtasksrequest) request. \_meta?: MetaObject[Permalink](#listtasksresult-_meta)Inherited from PaginatedResult.\_metanextCursor?: string[Permalink](#listtasksresult-nextcursor)An opaque token representing the pagination position after the last returned result.
If present, there may be more results available. Inherited from PaginatedResult.nextCursortasks: Task\[][Permalink](#listtasksresult-tasks)

## `tasks/cancel`

### `CancelTaskRequest`

interface CancelTaskRequest \{\
  [jsonrpc](#canceltaskrequest-jsonrpc): "2.0";\
  [id](#canceltaskrequest-id): [RequestId](#requestid);\
  [method](#canceltaskrequest-method): "tasks/cancel";\
  [params](#canceltaskrequest-params): \{ taskId: string };\
}A request to cancel a task. jsonrpc: "2.0"[Permalink](#canceltaskrequest-jsonrpc)Inherited from [JSONRPCRequest](#jsonrpcrequest).[jsonrpc](#jsonrpcrequest-jsonrpc)id: RequestId[Permalink](#canceltaskrequest-id)Inherited from [JSONRPCRequest](#jsonrpcrequest).[id](#jsonrpcrequest-id)method: "tasks/cancel"[Permalink](#canceltaskrequest-method)Overrides [JSONRPCRequest](#jsonrpcrequest).[method](#jsonrpcrequest-method)params: \{ taskId: string }[Permalink](#canceltaskrequest-params)Type Declaration<ul><li>taskId: stringThe task identifier to cancel. </li></ul>Overrides [JSONRPCRequest](#jsonrpcrequest).[params](#jsonrpcrequest-params)

### `CancelTaskResultResponse`

interface CancelTaskResultResponse \{\
  [jsonrpc](#canceltaskresultresponse-jsonrpc): "2.0";\
  [id](#canceltaskresultresponse-id): [RequestId](#requestid);\
  [result](#canceltaskresultresponse-result): [CancelTaskResult](#canceltaskresult);\
}A successful response for a [tasks/cancel](#canceltaskrequest) request. jsonrpc: "2.0"[Permalink](#canceltaskresultresponse-jsonrpc)Inherited from [JSONRPCResultResponse](#jsonrpcresultresponse).[jsonrpc](#jsonrpcresultresponse-jsonrpc)id: RequestId[Permalink](#canceltaskresultresponse-id)Inherited from [JSONRPCResultResponse](#jsonrpcresultresponse).[id](#jsonrpcresultresponse-id)result: CancelTaskResult[Permalink](#canceltaskresultresponse-result)Overrides [JSONRPCResultResponse](#jsonrpcresultresponse).[result](#jsonrpcresultresponse-result)

### `CancelTaskResult`

CancelTaskResult: [Result](#result) & [Task](#task)The result returned for a [tasks/cancel](#canceltaskrequest) request.&#x20;

## `prompts/get`

### `GetPromptRequest`

interface GetPromptRequest \{\
  [jsonrpc](#getpromptrequest-jsonrpc): "2.0";\
  [id](#getpromptrequest-id): [RequestId](#requestid);\
  [method](#getpromptrequest-method): "prompts/get";\
  [params](#getpromptrequest-params): [GetPromptRequestParams](#getpromptrequestparams);\
}Used by the client to get a prompt provided by the server. <details><summary>Example: Get prompt request[Permalink](#getpromptrequest-example-get-prompt-request)</summary><pre id="getpromptrequest-example-get-prompt-request">`{  "jsonrpc": "2.0",  "id": "get-prompt-example",  "method": "prompts/get",  "params": {    "name": "code_review",    "arguments": {      "code": "def hello():\n    print('world')"    }  }} `Copy</pre> </details>jsonrpc: "2.0"[Permalink](#getpromptrequest-jsonrpc)Inherited from [JSONRPCRequest](#jsonrpcrequest).[jsonrpc](#jsonrpcrequest-jsonrpc)id: RequestId[Permalink](#getpromptrequest-id)Inherited from [JSONRPCRequest](#jsonrpcrequest).[id](#jsonrpcrequest-id)method: "prompts/get"[Permalink](#getpromptrequest-method)Overrides [JSONRPCRequest](#jsonrpcrequest).[method](#jsonrpcrequest-method)params: GetPromptRequestParams[Permalink](#getpromptrequest-params)Overrides [JSONRPCRequest](#jsonrpcrequest).[params](#jsonrpcrequest-params)

### `GetPromptRequestParams`

interface GetPromptRequestParams \{\
  [\_meta](#getpromptrequestparams-_meta)?: [RequestMetaObject](#requestmetaobject);\
  [name](#getpromptrequestparams-name): string;\
  [arguments](#getpromptrequestparams-arguments)?: \{ \[key: string]: string };\
}Parameters for a `prompts/get` request. <details><summary>Example: Get code review prompt[Permalink](#getpromptrequestparams-example-get-code-review-prompt)</summary><pre id="getpromptrequestparams-example-get-code-review-prompt">`{  "name": "code_review",  "arguments": {    "code": "def hello():\n    print('world')"  }} `Copy</pre> </details>\_meta?: RequestMetaObject[Permalink](#getpromptrequestparams-_meta)Inherited from [RequestParams](#requestparams).[\_meta](#requestparams-_meta)name: string[Permalink](#getpromptrequestparams-name)The name of the prompt or prompt template. arguments?: \{ \[key: string]: string }[Permalink](#getpromptrequestparams-arguments)Arguments to use for templating the prompt.&#x20;

### `GetPromptResultResponse`

interface GetPromptResultResponse \{\
  [jsonrpc](#getpromptresultresponse-jsonrpc): "2.0";\
  [id](#getpromptresultresponse-id): [RequestId](#requestid);\
  [result](#getpromptresultresponse-result): [GetPromptResult](#getpromptresult);\
}A successful response from the server for a [prompts/get](#getpromptrequest) request. <details><summary>Example: Get prompt result response[Permalink](#getpromptresultresponse-example-get-prompt-result-response)</summary><pre id="getpromptresultresponse-example-get-prompt-result-response">`{  "jsonrpc": "2.0",  "id": "get-prompt-example",  "result": {    "description": "Code review prompt",    "messages": [      {        "role": "user",        "content": {          "type": "text",          "text": "Please review this Python code:\ndef hello():\n    print('world')"        }      }    ]  }} `Copy</pre> </details>jsonrpc: "2.0"[Permalink](#getpromptresultresponse-jsonrpc)Inherited from [JSONRPCResultResponse](#jsonrpcresultresponse).[jsonrpc](#jsonrpcresultresponse-jsonrpc)id: RequestId[Permalink](#getpromptresultresponse-id)Inherited from [JSONRPCResultResponse](#jsonrpcresultresponse).[id](#jsonrpcresultresponse-id)result: GetPromptResult[Permalink](#getpromptresultresponse-result)Overrides [JSONRPCResultResponse](#jsonrpcresultresponse).[result](#jsonrpcresultresponse-result)

### `GetPromptResult`

interface GetPromptResult \{\
  [\_meta](#getpromptresult-_meta)?: [MetaObject](#metaobject);\
  [description](#getpromptresult-description)?: string;\
  [messages](#getpromptresult-messages): [PromptMessage](#promptmessage)\[];\
  \[key: string]: unknown;\
}The result returned by the server for a [prompts/get](#getpromptrequest) request. <details><summary>Example: Code review prompt[Permalink](#getpromptresult-example-code-review-prompt)</summary><pre id="getpromptresult-example-code-review-prompt">`{  "description": "Code review prompt",  "messages": [    {      "role": "user",      "content": {        "type": "text",        "text": "Please review this Python code:\ndef hello():\n    print('world')"      }    }  ]} `Copy</pre> </details>\_meta?: MetaObject[Permalink](#getpromptresult-_meta)Inherited from [Result](#result).[\_meta](#result-_meta)description?: string[Permalink](#getpromptresult-description)An optional description for the prompt. messages: PromptMessage\[][Permalink](#getpromptresult-messages)

### `PromptMessage`

interface PromptMessage \{\
  [role](#promptmessage-role): [Role](#role);\
  [content](#promptmessage-content): [ContentBlock](#contentblock);\
}Describes a message returned as part of a prompt. This is similar to [SamplingMessage](#samplingmessage), but also supports the embedding of
resources from the MCP server. role: Role[Permalink](#promptmessage-role)content: ContentBlock[Permalink](#promptmessage-content)

## `prompts/list`

### `ListPromptsRequest`

interface ListPromptsRequest \{\
  [jsonrpc](#listpromptsrequest-jsonrpc): "2.0";\
  [id](#listpromptsrequest-id): [RequestId](#requestid);\
  [params](#listpromptsrequest-params)?: [PaginatedRequestParams](#paginatedrequestparams);\
  [method](#listpromptsrequest-method): "prompts/list";\
}Sent from the client to request a list of prompts and prompt templates the server has. <details><summary>Example: List prompts request[Permalink](#listpromptsrequest-example-list-prompts-request)</summary><pre id="listpromptsrequest-example-list-prompts-request">`{  "jsonrpc": "2.0",  "id": "list-prompts-example",  "method": "prompts/list"} `Copy</pre> </details>jsonrpc: "2.0"[Permalink](#listpromptsrequest-jsonrpc)Inherited from PaginatedRequest.jsonrpcid: RequestId[Permalink](#listpromptsrequest-id)Inherited from PaginatedRequest.idparams?: PaginatedRequestParams[Permalink](#listpromptsrequest-params)Inherited from PaginatedRequest.paramsmethod: "prompts/list"[Permalink](#listpromptsrequest-method)Overrides PaginatedRequest.method

### `ListPromptsResultResponse`

interface ListPromptsResultResponse \{\
  [jsonrpc](#listpromptsresultresponse-jsonrpc): "2.0";\
  [id](#listpromptsresultresponse-id): [RequestId](#requestid);\
  [result](#listpromptsresultresponse-result): [ListPromptsResult](#listpromptsresult);\
}A successful response from the server for a [prompts/list](#listpromptsrequest) request. <details><summary>Example: List prompts result response[Permalink](#listpromptsresultresponse-example-list-prompts-result-response)</summary><pre id="listpromptsresultresponse-example-list-prompts-result-response">`{  "jsonrpc": "2.0",  "id": "list-prompts-example",  "result": {    "prompts": [      {        "name": "code_review",        "title": "Request Code Review",        "description": "Asks the LLM to analyze code quality and suggest improvements",        "arguments": [          {            "name": "code",            "description": "The code to review",            "required": true          }        ],        "icons": [          {            "src": "https://example.com/review-icon.svg",            "mimeType": "image/svg+xml",            "sizes": ["any"]          }        ]      }    ],    "nextCursor": "next-page-cursor"  }} `Copy</pre> </details>jsonrpc: "2.0"[Permalink](#listpromptsresultresponse-jsonrpc)Inherited from [JSONRPCResultResponse](#jsonrpcresultresponse).[jsonrpc](#jsonrpcresultresponse-jsonrpc)id: RequestId[Permalink](#listpromptsresultresponse-id)Inherited from [JSONRPCResultResponse](#jsonrpcresultresponse).[id](#jsonrpcresultresponse-id)result: ListPromptsResult[Permalink](#listpromptsresultresponse-result)Overrides [JSONRPCResultResponse](#jsonrpcresultresponse).[result](#jsonrpcresultresponse-result)

### `ListPromptsResult`

interface ListPromptsResult \{\
  [\_meta](#listpromptsresult-_meta)?: [MetaObject](#metaobject);\
  [nextCursor](#listpromptsresult-nextcursor)?: string;\
  [prompts](#listpromptsresult-prompts): [Prompt](#prompt)\[];\
  \[key: string]: unknown;\
}The result returned by the server for a [prompts/list](#listpromptsrequest) request. <details><summary>Example: Prompts list with cursor[Permalink](#listpromptsresult-example-prompts-list-with-cursor)</summary><pre id="listpromptsresult-example-prompts-list-with-cursor">`{  "prompts": [    {      "name": "code_review",      "title": "Request Code Review",      "description": "Asks the LLM to analyze code quality and suggest improvements",      "arguments": [        {          "name": "code",          "description": "The code to review",          "required": true        }      ],      "icons": [        {          "src": "https://example.com/review-icon.svg",          "mimeType": "image/svg+xml",          "sizes": ["any"]        }      ]    }  ],  "nextCursor": "next-page-cursor"} `Copy</pre> </details>\_meta?: MetaObject[Permalink](#listpromptsresult-_meta)Inherited from PaginatedResult.\_metanextCursor?: string[Permalink](#listpromptsresult-nextcursor)An opaque token representing the pagination position after the last returned result.
If present, there may be more results available. Inherited from PaginatedResult.nextCursorprompts: Prompt\[][Permalink](#listpromptsresult-prompts)

### `Prompt`

interface Prompt \{\
  [icons](#prompt-icons)?: [Icon](#icon)\[];\
  [name](#prompt-name): string;\
  [title](#prompt-title)?: string;\
  [description](#prompt-description)?: string;\
  [arguments](#prompt-arguments)?: [PromptArgument](#promptargument)\[];\
  [\_meta](#prompt-_meta)?: [MetaObject](#metaobject);\
}A prompt or prompt template that the server offers. icons?: Icon\[][Permalink](#prompt-icons)Optional set of sized icons that the client can display in a user interface. Clients that support rendering icons MUST support at least the following MIME types: <ul> <li>`image/png` - PNG images (safe, universal compatibility)</li> <li>`image/jpeg` (and `image/jpg`) - JPEG images (safe, universal compatibility)</li> </ul> Clients that support rendering icons SHOULD also support: <ul> <li>`image/svg+xml` - SVG images (scalable but requires security precautions)</li> <li>`image/webp` - WebP images (modern, efficient format)</li> </ul> Inherited from Icons.iconsname: string[Permalink](#prompt-name)Intended for programmatic or logical use, but used as a display name in past specs or fallback (if title isn't present). Inherited from BaseMetadata.nametitle?: string[Permalink](#prompt-title)Intended for UI and end-user contexts — optimized to be human-readable and easily understood,
even by those unfamiliar with domain-specific terminology. If not provided, the name should be used for display (except for [Tool](#tool),
where `annotations.title` should be given precedence over using `name`,
if present). Inherited from BaseMetadata.titledescription?: string[Permalink](#prompt-description)An optional description of what this prompt provides arguments?: PromptArgument\[][Permalink](#prompt-arguments)A list of arguments to use for templating the prompt. \_meta?: MetaObject[Permalink](#prompt-_meta)

### `PromptArgument`

interface PromptArgument \{\
  [name](#promptargument-name): string;\
  [title](#promptargument-title)?: string;\
  [description](#promptargument-description)?: string;\
  [required](#promptargument-required)?: boolean;\
}Describes an argument that a prompt can accept. name: string[Permalink](#promptargument-name)Intended for programmatic or logical use, but used as a display name in past specs or fallback (if title isn't present). Inherited from BaseMetadata.nametitle?: string[Permalink](#promptargument-title)Intended for UI and end-user contexts — optimized to be human-readable and easily understood,
even by those unfamiliar with domain-specific terminology. If not provided, the name should be used for display (except for [Tool](#tool),
where `annotations.title` should be given precedence over using `name`,
if present). Inherited from BaseMetadata.titledescription?: string[Permalink](#promptargument-description)A human-readable description of the argument. required?: boolean[Permalink](#promptargument-required)Whether this argument must be provided.&#x20;

## `resources/list`

### `ListResourcesRequest`

interface ListResourcesRequest \{\
  [jsonrpc](#listresourcesrequest-jsonrpc): "2.0";\
  [id](#listresourcesrequest-id): [RequestId](#requestid);\
  [params](#listresourcesrequest-params)?: [PaginatedRequestParams](#paginatedrequestparams);\
  [method](#listresourcesrequest-method): "resources/list";\
}Sent from the client to request a list of resources the server has. <details><summary>Example: List resources request[Permalink](#listresourcesrequest-example-list-resources-request)</summary><pre id="listresourcesrequest-example-list-resources-request">`{  "jsonrpc": "2.0",  "id": "list-resources-example",  "method": "resources/list"} `Copy</pre> </details>jsonrpc: "2.0"[Permalink](#listresourcesrequest-jsonrpc)Inherited from PaginatedRequest.jsonrpcid: RequestId[Permalink](#listresourcesrequest-id)Inherited from PaginatedRequest.idparams?: PaginatedRequestParams[Permalink](#listresourcesrequest-params)Inherited from PaginatedRequest.paramsmethod: "resources/list"[Permalink](#listresourcesrequest-method)Overrides PaginatedRequest.method

### `ListResourcesResultResponse`

interface ListResourcesResultResponse \{\
  [jsonrpc](#listresourcesresultresponse-jsonrpc): "2.0";\
  [id](#listresourcesresultresponse-id): [RequestId](#requestid);\
  [result](#listresourcesresultresponse-result): [ListResourcesResult](#listresourcesresult);\
}A successful response from the server for a [resources/list](#listresourcesrequest) request. <details><summary>Example: List resources result response[Permalink](#listresourcesresultresponse-example-list-resources-result-response)</summary><pre id="listresourcesresultresponse-example-list-resources-result-response">`{  "jsonrpc": "2.0",  "id": "list-resources-example",  "result": {    "resources": [      {        "uri": "file:///project/src/main.rs",        "name": "main.rs",        "title": "Rust Software Application Main File",        "description": "Primary application entry point",        "mimeType": "text/x-rust",        "icons": [          {            "src": "https://example.com/rust-file-icon.png",            "mimeType": "image/png",            "sizes": ["48x48"]          }        ]      }    ],    "nextCursor": "eyJwYWdlIjogM30="  }} `Copy</pre> </details>jsonrpc: "2.0"[Permalink](#listresourcesresultresponse-jsonrpc)Inherited from [JSONRPCResultResponse](#jsonrpcresultresponse).[jsonrpc](#jsonrpcresultresponse-jsonrpc)id: RequestId[Permalink](#listresourcesresultresponse-id)Inherited from [JSONRPCResultResponse](#jsonrpcresultresponse).[id](#jsonrpcresultresponse-id)result: ListResourcesResult[Permalink](#listresourcesresultresponse-result)Overrides [JSONRPCResultResponse](#jsonrpcresultresponse).[result](#jsonrpcresultresponse-result)

### `ListResourcesResult`

interface ListResourcesResult \{\
  [\_meta](#listresourcesresult-_meta)?: [MetaObject](#metaobject);\
  [nextCursor](#listresourcesresult-nextcursor)?: string;\
  [resources](#listresourcesresult-resources): [Resource](#resource)\[];\
  \[key: string]: unknown;\
}The result returned by the server for a [resources/list](#listresourcesrequest) request. <details><summary>Example: Resources list with cursor[Permalink](#listresourcesresult-example-resources-list-with-cursor)</summary><pre id="listresourcesresult-example-resources-list-with-cursor">`{  "resources": [    {      "uri": "file:///project/src/main.rs",      "name": "main.rs",      "title": "Rust Software Application Main File",      "description": "Primary application entry point",      "mimeType": "text/x-rust",      "icons": [        {          "src": "https://example.com/rust-file-icon.png",          "mimeType": "image/png",          "sizes": ["48x48"]        }      ]    }  ],  "nextCursor": "eyJwYWdlIjogM30="} `Copy</pre> </details>\_meta?: MetaObject[Permalink](#listresourcesresult-_meta)Inherited from PaginatedResult.\_metanextCursor?: string[Permalink](#listresourcesresult-nextcursor)An opaque token representing the pagination position after the last returned result.
If present, there may be more results available. Inherited from PaginatedResult.nextCursorresources: Resource\[][Permalink](#listresourcesresult-resources)

### `Resource`

interface Resource \{\
  [icons](#resource-icons)?: [Icon](#icon)\[];\
  [name](#resource-name): string;\
  [title](#resource-title)?: string;\
  [uri](#resource-uri): string;\
  [description](#resource-description)?: string;\
  [mimeType](#resource-mimetype)?: string;\
  [annotations](#resource-annotations)?: [Annotations](#annotations);\
  [size](#resource-size)?: number;\
  [\_meta](#resource-_meta)?: [MetaObject](#metaobject);\
}A known resource that the server is capable of reading. <details><summary>Example: File resource with annotations[Permalink](#resource-example-file-resource-with-annotations)</summary><pre id="resource-example-file-resource-with-annotations">`{  "uri": "file:///project/README.md",  "name": "README.md",  "title": "Project Documentation",  "mimeType": "text/markdown",  "annotations": {    "audience": ["user"],    "priority": 0.8,    "lastModified": "2025-01-12T15:00:58Z"  }} `Copy</pre> </details>icons?: Icon\[][Permalink](#resource-icons)Optional set of sized icons that the client can display in a user interface. Clients that support rendering icons MUST support at least the following MIME types: <ul> <li>`image/png` - PNG images (safe, universal compatibility)</li> <li>`image/jpeg` (and `image/jpg`) - JPEG images (safe, universal compatibility)</li> </ul> Clients that support rendering icons SHOULD also support: <ul> <li>`image/svg+xml` - SVG images (scalable but requires security precautions)</li> <li>`image/webp` - WebP images (modern, efficient format)</li> </ul> Inherited from Icons.iconsname: string[Permalink](#resource-name)Intended for programmatic or logical use, but used as a display name in past specs or fallback (if title isn't present). Inherited from BaseMetadata.nametitle?: string[Permalink](#resource-title)Intended for UI and end-user contexts — optimized to be human-readable and easily understood,
even by those unfamiliar with domain-specific terminology. If not provided, the name should be used for display (except for [Tool](#tool),
where `annotations.title` should be given precedence over using `name`,
if present). Inherited from BaseMetadata.titleuri: string[Permalink](#resource-uri)The URI of this resource. description?: string[Permalink](#resource-description)A description of what this resource represents. This can be used by clients to improve the LLM's understanding of available resources. It can be thought of like a "hint" to the model. mimeType?: string[Permalink](#resource-mimetype)The MIME type of this resource, if known. annotations?: Annotations[Permalink](#resource-annotations)Optional annotations for the client. size?: number[Permalink](#resource-size)The size of the raw resource content, in bytes (i.e., before base64 encoding or any tokenization), if known. This can be used by Hosts to display file sizes and estimate context window usage. \_meta?: MetaObject[Permalink](#resource-_meta)

## `resources/read`

### `ReadResourceRequest`

interface ReadResourceRequest \{\
  [jsonrpc](#readresourcerequest-jsonrpc): "2.0";\
  [id](#readresourcerequest-id): [RequestId](#requestid);\
  [method](#readresourcerequest-method): "resources/read";\
  [params](#readresourcerequest-params): [ReadResourceRequestParams](#readresourcerequestparams);\
}Sent from the client to the server, to read a specific resource URI. <details><summary>Example: Read resource request[Permalink](#readresourcerequest-example-read-resource-request)</summary><pre id="readresourcerequest-example-read-resource-request">`{  "jsonrpc": "2.0",  "id": "read-resource-example",  "method": "resources/read",  "params": {    "uri": "file:///project/src/main.rs"  }} `Copy</pre> </details>jsonrpc: "2.0"[Permalink](#readresourcerequest-jsonrpc)Inherited from [JSONRPCRequest](#jsonrpcrequest).[jsonrpc](#jsonrpcrequest-jsonrpc)id: RequestId[Permalink](#readresourcerequest-id)Inherited from [JSONRPCRequest](#jsonrpcrequest).[id](#jsonrpcrequest-id)method: "resources/read"[Permalink](#readresourcerequest-method)Overrides [JSONRPCRequest](#jsonrpcrequest).[method](#jsonrpcrequest-method)params: ReadResourceRequestParams[Permalink](#readresourcerequest-params)Overrides [JSONRPCRequest](#jsonrpcrequest).[params](#jsonrpcrequest-params)

### `ReadResourceRequestParams`

interface ReadResourceRequestParams \{\
  [\_meta](#readresourcerequestparams-_meta)?: [RequestMetaObject](#requestmetaobject);\
  [uri](#readresourcerequestparams-uri): string;\
}Parameters for a `resources/read` request. \_meta?: RequestMetaObject[Permalink](#readresourcerequestparams-_meta)Inherited from ResourceRequestParams.\_metauri: string[Permalink](#readresourcerequestparams-uri)The URI of the resource. The URI can use any protocol; it is up to the server how to interpret it. Inherited from ResourceRequestParams.uri

### `ReadResourceResultResponse`

interface ReadResourceResultResponse \{\
  [jsonrpc](#readresourceresultresponse-jsonrpc): "2.0";\
  [id](#readresourceresultresponse-id): [RequestId](#requestid);\
  [result](#readresourceresultresponse-result): [ReadResourceResult](#readresourceresult);\
}A successful response from the server for a [resources/read](#readresourcerequest) request. <details><summary>Example: Read resource result response[Permalink](#readresourceresultresponse-example-read-resource-result-response)</summary><pre id="readresourceresultresponse-example-read-resource-result-response">`{  "jsonrpc": "2.0",  "id": "read-resource-example",  "result": {    "contents": [      {        "uri": "file:///project/src/main.rs",        "mimeType": "text/x-rust",        "text": "fn main() {\n    println!(\"Hello world!\");\n}"      }    ]  }} `Copy</pre> </details>jsonrpc: "2.0"[Permalink](#readresourceresultresponse-jsonrpc)Inherited from [JSONRPCResultResponse](#jsonrpcresultresponse).[jsonrpc](#jsonrpcresultresponse-jsonrpc)id: RequestId[Permalink](#readresourceresultresponse-id)Inherited from [JSONRPCResultResponse](#jsonrpcresultresponse).[id](#jsonrpcresultresponse-id)result: ReadResourceResult[Permalink](#readresourceresultresponse-result)Overrides [JSONRPCResultResponse](#jsonrpcresultresponse).[result](#jsonrpcresultresponse-result)

### `ReadResourceResult`

interface ReadResourceResult \{\
  [\_meta](#readresourceresult-_meta)?: [MetaObject](#metaobject);\
  [contents](#readresourceresult-contents): ([TextResourceContents](#textresourcecontents) | [BlobResourceContents](#blobresourcecontents))\[];\
  \[key: string]: unknown;\
}The result returned by the server for a [resources/read](#readresourcerequest) request. <details><summary>Example: File resource contents[Permalink](#readresourceresult-example-file-resource-contents)</summary><pre id="readresourceresult-example-file-resource-contents">`{  "contents": [    {      "uri": "file:///project/src/main.rs",      "mimeType": "text/x-rust",      "text": "fn main() {\n    println!(\"Hello world!\");\n}"    }  ]} `Copy</pre> </details>\_meta?: MetaObject[Permalink](#readresourceresult-_meta)Inherited from [Result](#result).[\_meta](#result-_meta)contents: (TextResourceContents | BlobResourceContents)\[][Permalink](#readresourceresult-contents)

## `resources/subscribe`

### `SubscribeRequest`

interface SubscribeRequest \{\
  [jsonrpc](#subscriberequest-jsonrpc): "2.0";\
  [id](#subscriberequest-id): [RequestId](#requestid);\
  [method](#subscriberequest-method): "resources/subscribe";\
  [params](#subscriberequest-params): [SubscribeRequestParams](#subscriberequestparams);\
}Sent from the client to request [resources/updated](#resourceupdatednotification) notifications from the server whenever a particular resource changes. <details><summary>Example: Subscribe request[Permalink](#subscriberequest-example-subscribe-request)</summary><pre id="subscriberequest-example-subscribe-request">`{  "jsonrpc": "2.0",  "id": "subscribe-example",  "method": "resources/subscribe",  "params": {    "uri": "file:///project/src/main.rs"  }} `Copy</pre> </details>jsonrpc: "2.0"[Permalink](#subscriberequest-jsonrpc)Inherited from [JSONRPCRequest](#jsonrpcrequest).[jsonrpc](#jsonrpcrequest-jsonrpc)id: RequestId[Permalink](#subscriberequest-id)Inherited from [JSONRPCRequest](#jsonrpcrequest).[id](#jsonrpcrequest-id)method: "resources/subscribe"[Permalink](#subscriberequest-method)Overrides [JSONRPCRequest](#jsonrpcrequest).[method](#jsonrpcrequest-method)params: SubscribeRequestParams[Permalink](#subscriberequest-params)Overrides [JSONRPCRequest](#jsonrpcrequest).[params](#jsonrpcrequest-params)

### `SubscribeRequestParams`

interface SubscribeRequestParams \{\
  [\_meta](#subscriberequestparams-_meta)?: [RequestMetaObject](#requestmetaobject);\
  [uri](#subscriberequestparams-uri): string;\
}Parameters for a `resources/subscribe` request. <details><summary>Example: Subscribe to file resource[Permalink](#subscriberequestparams-example-subscribe-to-file-resource)</summary><pre id="subscriberequestparams-example-subscribe-to-file-resource">`{  "uri": "file:///project/src/main.rs"} `Copy</pre> </details>\_meta?: RequestMetaObject[Permalink](#subscriberequestparams-_meta)Inherited from ResourceRequestParams.\_metauri: string[Permalink](#subscriberequestparams-uri)The URI of the resource. The URI can use any protocol; it is up to the server how to interpret it. Inherited from ResourceRequestParams.uri

### `SubscribeResultResponse`

interface SubscribeResultResponse \{\
  [jsonrpc](#subscriberesultresponse-jsonrpc): "2.0";\
  [id](#subscriberesultresponse-id): [RequestId](#requestid);\
  [result](#subscriberesultresponse-result): [Result](#result);\
}A successful response from the server for a [resources/subscribe](#subscriberequest) request. <details><summary>Example: Subscribe result response[Permalink](#subscriberesultresponse-example-subscribe-result-response)</summary><pre id="subscriberesultresponse-example-subscribe-result-response">`{  "jsonrpc": "2.0",  "id": "subscribe-example",  "result": {}} `Copy</pre> </details>jsonrpc: "2.0"[Permalink](#subscriberesultresponse-jsonrpc)Inherited from [JSONRPCResultResponse](#jsonrpcresultresponse).[jsonrpc](#jsonrpcresultresponse-jsonrpc)id: RequestId[Permalink](#subscriberesultresponse-id)Inherited from [JSONRPCResultResponse](#jsonrpcresultresponse).[id](#jsonrpcresultresponse-id)result: Result[Permalink](#subscriberesultresponse-result)Overrides [JSONRPCResultResponse](#jsonrpcresultresponse).[result](#jsonrpcresultresponse-result)

## `resources/templates/list`

### `ListResourceTemplatesRequest`

interface ListResourceTemplatesRequest \{\
  [jsonrpc](#listresourcetemplatesrequest-jsonrpc): "2.0";\
  [id](#listresourcetemplatesrequest-id): [RequestId](#requestid);\
  [params](#listresourcetemplatesrequest-params)?: [PaginatedRequestParams](#paginatedrequestparams);\
  [method](#listresourcetemplatesrequest-method): "resources/templates/list";\
}Sent from the client to request a list of resource templates the server has. <details><summary>Example: List resource templates request[Permalink](#listresourcetemplatesrequest-example-list-resource-templates-request)</summary><pre id="listresourcetemplatesrequest-example-list-resource-templates-request">`{  "jsonrpc": "2.0",  "id": "list-resource-templates-example",  "method": "resources/templates/list"} `Copy</pre> </details>jsonrpc: "2.0"[Permalink](#listresourcetemplatesrequest-jsonrpc)Inherited from PaginatedRequest.jsonrpcid: RequestId[Permalink](#listresourcetemplatesrequest-id)Inherited from PaginatedRequest.idparams?: PaginatedRequestParams[Permalink](#listresourcetemplatesrequest-params)Inherited from PaginatedRequest.paramsmethod: "resources/templates/list"[Permalink](#listresourcetemplatesrequest-method)Overrides PaginatedRequest.method

### `ListResourceTemplatesResultResponse`

interface ListResourceTemplatesResultResponse \{\
  [jsonrpc](#listresourcetemplatesresultresponse-jsonrpc): "2.0";\
  [id](#listresourcetemplatesresultresponse-id): [RequestId](#requestid);\
  [result](#listresourcetemplatesresultresponse-result): [ListResourceTemplatesResult](#listresourcetemplatesresult);\
}A successful response from the server for a [resources/templates/list](#listresourcetemplatesrequest) request. <details><summary>Example: List resource templates result response[Permalink](#listresourcetemplatesresultresponse-example-list-resource-templates-result-response)</summary><pre id="listresourcetemplatesresultresponse-example-list-resource-templates-result-response">`{  "jsonrpc": "2.0",  "id": "list-resource-templates-example",  "result": {    "resourceTemplates": [      {        "uriTemplate": "file:///{path}",        "name": "Project Files",        "title": "Project Files",        "description": "Access files in the project directory",        "mimeType": "application/octet-stream",        "icons": [          {            "src": "https://example.com/folder-icon.png",            "mimeType": "image/png",            "sizes": ["48x48"]          }        ]      }    ]  }} `Copy</pre> </details>jsonrpc: "2.0"[Permalink](#listresourcetemplatesresultresponse-jsonrpc)Inherited from [JSONRPCResultResponse](#jsonrpcresultresponse).[jsonrpc](#jsonrpcresultresponse-jsonrpc)id: RequestId[Permalink](#listresourcetemplatesresultresponse-id)Inherited from [JSONRPCResultResponse](#jsonrpcresultresponse).[id](#jsonrpcresultresponse-id)result: ListResourceTemplatesResult[Permalink](#listresourcetemplatesresultresponse-result)Overrides [JSONRPCResultResponse](#jsonrpcresultresponse).[result](#jsonrpcresultresponse-result)

### `ListResourceTemplatesResult`

interface ListResourceTemplatesResult \{\
  [\_meta](#listresourcetemplatesresult-_meta)?: [MetaObject](#metaobject);\
  [nextCursor](#listresourcetemplatesresult-nextcursor)?: string;\
  [resourceTemplates](#listresourcetemplatesresult-resourcetemplates): [ResourceTemplate](#resourcetemplate)\[];\
  \[key: string]: unknown;\
}The result returned by the server for a [resources/templates/list](#listresourcetemplatesrequest) request. <details><summary>Example: Resource templates list[Permalink](#listresourcetemplatesresult-example-resource-templates-list)</summary><pre id="listresourcetemplatesresult-example-resource-templates-list">`{  "resourceTemplates": [    {      "uriTemplate": "file:///{path}",      "name": "Project Files",      "title": "📁 Project Files",      "description": "Access files in the project directory",      "mimeType": "application/octet-stream",      "icons": [        {          "src": "https://example.com/folder-icon.png",          "mimeType": "image/png",          "sizes": ["48x48"]        }      ]    }  ]} `Copy</pre> </details>\_meta?: MetaObject[Permalink](#listresourcetemplatesresult-_meta)Inherited from PaginatedResult.\_metanextCursor?: string[Permalink](#listresourcetemplatesresult-nextcursor)An opaque token representing the pagination position after the last returned result.
If present, there may be more results available. Inherited from PaginatedResult.nextCursorresourceTemplates: ResourceTemplate\[][Permalink](#listresourcetemplatesresult-resourcetemplates)

### `ResourceTemplate`

interface ResourceTemplate \{\
  [icons](#resourcetemplate-icons)?: [Icon](#icon)\[];\
  [name](#resourcetemplate-name): string;\
  [title](#resourcetemplate-title)?: string;\
  [uriTemplate](#resourcetemplate-uritemplate): string;\
  [description](#resourcetemplate-description)?: string;\
  [mimeType](#resourcetemplate-mimetype)?: string;\
  [annotations](#resourcetemplate-annotations)?: [Annotations](#annotations);\
  [\_meta](#resourcetemplate-_meta)?: [MetaObject](#metaobject);\
}A template description for resources available on the server. icons?: Icon\[][Permalink](#resourcetemplate-icons)Optional set of sized icons that the client can display in a user interface. Clients that support rendering icons MUST support at least the following MIME types: <ul> <li>`image/png` - PNG images (safe, universal compatibility)</li> <li>`image/jpeg` (and `image/jpg`) - JPEG images (safe, universal compatibility)</li> </ul> Clients that support rendering icons SHOULD also support: <ul> <li>`image/svg+xml` - SVG images (scalable but requires security precautions)</li> <li>`image/webp` - WebP images (modern, efficient format)</li> </ul> Inherited from Icons.iconsname: string[Permalink](#resourcetemplate-name)Intended for programmatic or logical use, but used as a display name in past specs or fallback (if title isn't present). Inherited from BaseMetadata.nametitle?: string[Permalink](#resourcetemplate-title)Intended for UI and end-user contexts — optimized to be human-readable and easily understood,
even by those unfamiliar with domain-specific terminology. If not provided, the name should be used for display (except for [Tool](#tool),
where `annotations.title` should be given precedence over using `name`,
if present). Inherited from BaseMetadata.titleuriTemplate: string[Permalink](#resourcetemplate-uritemplate)A URI template (according to RFC 6570) that can be used to construct resource URIs. description?: string[Permalink](#resourcetemplate-description)A description of what this template is for. This can be used by clients to improve the LLM's understanding of available resources. It can be thought of like a "hint" to the model. mimeType?: string[Permalink](#resourcetemplate-mimetype)The MIME type for all resources that match this template. This should only be included if all resources matching this template have the same type. annotations?: Annotations[Permalink](#resourcetemplate-annotations)Optional annotations for the client. \_meta?: MetaObject[Permalink](#resourcetemplate-_meta)

## `resources/unsubscribe`

### `UnsubscribeRequest`

interface UnsubscribeRequest \{\
  [jsonrpc](#unsubscriberequest-jsonrpc): "2.0";\
  [id](#unsubscriberequest-id): [RequestId](#requestid);\
  [method](#unsubscriberequest-method): "resources/unsubscribe";\
  [params](#unsubscriberequest-params): [UnsubscribeRequestParams](#unsubscriberequestparams);\
}Sent from the client to request cancellation of [resources/updated](#resourceupdatednotification) notifications from the server. This should follow a previous [resources/subscribe](#subscriberequest) request. <details><summary>Example: Unsubscribe request[Permalink](#unsubscriberequest-example-unsubscribe-request)</summary><pre id="unsubscriberequest-example-unsubscribe-request">`{  "jsonrpc": "2.0",  "id": "unsubscribe-example",  "method": "resources/unsubscribe",  "params": {    "uri": "file:///project/src/main.rs"  }} `Copy</pre> </details>jsonrpc: "2.0"[Permalink](#unsubscriberequest-jsonrpc)Inherited from [JSONRPCRequest](#jsonrpcrequest).[jsonrpc](#jsonrpcrequest-jsonrpc)id: RequestId[Permalink](#unsubscriberequest-id)Inherited from [JSONRPCRequest](#jsonrpcrequest).[id](#jsonrpcrequest-id)method: "resources/unsubscribe"[Permalink](#unsubscriberequest-method)Overrides [JSONRPCRequest](#jsonrpcrequest).[method](#jsonrpcrequest-method)params: UnsubscribeRequestParams[Permalink](#unsubscriberequest-params)Overrides [JSONRPCRequest](#jsonrpcrequest).[params](#jsonrpcrequest-params)

### `UnsubscribeRequestParams`

interface UnsubscribeRequestParams \{\
  [\_meta](#unsubscriberequestparams-_meta)?: [RequestMetaObject](#requestmetaobject);\
  [uri](#unsubscriberequestparams-uri): string;\
}Parameters for a `resources/unsubscribe` request. \_meta?: RequestMetaObject[Permalink](#unsubscriberequestparams-_meta)Inherited from ResourceRequestParams.\_metauri: string[Permalink](#unsubscriberequestparams-uri)The URI of the resource. The URI can use any protocol; it is up to the server how to interpret it. Inherited from ResourceRequestParams.uri

### `UnsubscribeResultResponse`

interface UnsubscribeResultResponse \{\
  [jsonrpc](#unsubscriberesultresponse-jsonrpc): "2.0";\
  [id](#unsubscriberesultresponse-id): [RequestId](#requestid);\
  [result](#unsubscriberesultresponse-result): [Result](#result);\
}A successful response from the server for a [resources/unsubscribe](#unsubscriberequest) request. <details><summary>Example: Unsubscribe result response[Permalink](#unsubscriberesultresponse-example-unsubscribe-result-response)</summary><pre id="unsubscriberesultresponse-example-unsubscribe-result-response">`{  "jsonrpc": "2.0",  "id": "unsubscribe-example",  "result": {}} `Copy</pre> </details>jsonrpc: "2.0"[Permalink](#unsubscriberesultresponse-jsonrpc)Inherited from [JSONRPCResultResponse](#jsonrpcresultresponse).[jsonrpc](#jsonrpcresultresponse-jsonrpc)id: RequestId[Permalink](#unsubscriberesultresponse-id)Inherited from [JSONRPCResultResponse](#jsonrpcresultresponse).[id](#jsonrpcresultresponse-id)result: Result[Permalink](#unsubscriberesultresponse-result)Overrides [JSONRPCResultResponse](#jsonrpcresultresponse).[result](#jsonrpcresultresponse-result)

## `roots/list`

### `ListRootsRequest`

interface ListRootsRequest \{\
  [jsonrpc](#listrootsrequest-jsonrpc): "2.0";\
  [id](#listrootsrequest-id): [RequestId](#requestid);\
  [method](#listrootsrequest-method): "roots/list";\
  [params](#listrootsrequest-params)?: [RequestParams](#requestparams);\
}Sent from the server to request a list of root URIs from the client. Roots allow
servers to ask for specific directories or files to operate on. A common example
for roots is providing a set of repositories or directories a server should operate
on. This request is typically used when the server needs to understand the file system
structure or access specific locations that the client has permission to read from. <details><summary>Example: List roots request[Permalink](#listrootsrequest-example-list-roots-request)</summary><pre id="listrootsrequest-example-list-roots-request">`{  "jsonrpc": "2.0",  "id": "list-roots-example",  "method": "roots/list"} `Copy</pre> </details>jsonrpc: "2.0"[Permalink](#listrootsrequest-jsonrpc)Inherited from [JSONRPCRequest](#jsonrpcrequest).[jsonrpc](#jsonrpcrequest-jsonrpc)id: RequestId[Permalink](#listrootsrequest-id)Inherited from [JSONRPCRequest](#jsonrpcrequest).[id](#jsonrpcrequest-id)method: "roots/list"[Permalink](#listrootsrequest-method)Overrides [JSONRPCRequest](#jsonrpcrequest).[method](#jsonrpcrequest-method)params?: RequestParams[Permalink](#listrootsrequest-params)Overrides [JSONRPCRequest](#jsonrpcrequest).[params](#jsonrpcrequest-params)

### `ListRootsResultResponse`

interface ListRootsResultResponse \{\
  [jsonrpc](#listrootsresultresponse-jsonrpc): "2.0";\
  [id](#listrootsresultresponse-id): [RequestId](#requestid);\
  [result](#listrootsresultresponse-result): [ListRootsResult](#listrootsresult);\
}A successful response from the client for a [roots/list](#listrootsrequest) request. <details><summary>Example: List roots result response[Permalink](#listrootsresultresponse-example-list-roots-result-response)</summary><pre id="listrootsresultresponse-example-list-roots-result-response">`{  "jsonrpc": "2.0",  "id": "list-roots-example",  "result": {    "roots": [      {        "uri": "file:///home/user/projects/myproject",        "name": "My Project"      }    ]  }} `Copy</pre> </details>jsonrpc: "2.0"[Permalink](#listrootsresultresponse-jsonrpc)Inherited from [JSONRPCResultResponse](#jsonrpcresultresponse).[jsonrpc](#jsonrpcresultresponse-jsonrpc)id: RequestId[Permalink](#listrootsresultresponse-id)Inherited from [JSONRPCResultResponse](#jsonrpcresultresponse).[id](#jsonrpcresultresponse-id)result: ListRootsResult[Permalink](#listrootsresultresponse-result)Overrides [JSONRPCResultResponse](#jsonrpcresultresponse).[result](#jsonrpcresultresponse-result)

### `ListRootsResult`

interface ListRootsResult \{\
  [\_meta](#listrootsresult-_meta)?: [MetaObject](#metaobject);\
  [roots](#listrootsresult-roots): [Root](#root)\[];\
  \[key: string]: unknown;\
}The result returned by the client for a [roots/list](#listrootsrequest) request.
This result contains an array of [Root](#root) objects, each representing a root directory
or file that the server can operate on. <details><summary>Example: Single root directory[Permalink](#listrootsresult-example-single-root-directory)</summary><pre id="listrootsresult-example-single-root-directory">`{  "roots": [    {      "uri": "file:///home/user/projects/myproject",      "name": "My Project"    }  ]} `Copy</pre> </details><details><summary>Example: Multiple root directories[Permalink](#listrootsresult-example-multiple-root-directories)</summary><pre id="listrootsresult-example-multiple-root-directories">`{  "roots": [    {      "uri": "file:///home/user/repos/frontend",      "name": "Frontend Repository"    },    {      "uri": "file:///home/user/repos/backend",      "name": "Backend Repository"    }  ]} `Copy</pre> </details>\_meta?: MetaObject[Permalink](#listrootsresult-_meta)Inherited from [Result](#result).[\_meta](#result-_meta)roots: Root\[][Permalink](#listrootsresult-roots)

### `Root`

interface Root \{\
  [uri](#root-uri): string;\
  [name](#root-name)?: string;\
  [\_meta](#root-_meta)?: [MetaObject](#metaobject);\
}Represents a root directory or file that the server can operate on. <details><summary>Example: Project directory root[Permalink](#root-example-project-directory-root)</summary><pre id="root-example-project-directory-root">`{  "uri": "file:///home/user/projects/myproject",  "name": "My Project"} `Copy</pre> </details>uri: string[Permalink](#root-uri)The URI identifying the root. This *must* start with `file://` for now.
This restriction may be relaxed in future versions of the protocol to allow
other URI schemes. name?: string[Permalink](#root-name)An optional name for the root. This can be used to provide a human-readable
identifier for the root, which may be useful for display purposes or for
referencing the root in other parts of the application. \_meta?: MetaObject[Permalink](#root-_meta)

## `sampling/createMessage`

### `CreateMessageRequest`

interface CreateMessageRequest \{\
  [jsonrpc](#createmessagerequest-jsonrpc): "2.0";\
  [id](#createmessagerequest-id): [RequestId](#requestid);\
  [method](#createmessagerequest-method): "sampling/createMessage";\
  [params](#createmessagerequest-params): [CreateMessageRequestParams](#createmessagerequestparams);\
}A request from the server to sample an LLM via the client. The client has full discretion over which model to select. The client should also inform the user before beginning sampling, to allow them to inspect the request (human in the loop) and decide whether to approve it. <details><summary>Example: Sampling request[Permalink](#createmessagerequest-example-sampling-request)</summary><pre id="createmessagerequest-example-sampling-request">`{  "jsonrpc": "2.0",  "id": "sampling-example",  "method": "sampling/createMessage",  "params": {    "messages": [      {        "role": "user",        "content": {          "type": "text",          "text": "What is the capital of France?"        }      }    ],    "modelPreferences": {      "hints": [        {          "name": "claude-3-sonnet"        }      ],      "intelligencePriority": 0.8,      "speedPriority": 0.5    },    "systemPrompt": "You are a helpful assistant.",    "maxTokens": 100  }} `Copy</pre> </details>jsonrpc: "2.0"[Permalink](#createmessagerequest-jsonrpc)Inherited from [JSONRPCRequest](#jsonrpcrequest).[jsonrpc](#jsonrpcrequest-jsonrpc)id: RequestId[Permalink](#createmessagerequest-id)Inherited from [JSONRPCRequest](#jsonrpcrequest).[id](#jsonrpcrequest-id)method: "sampling/createMessage"[Permalink](#createmessagerequest-method)Overrides [JSONRPCRequest](#jsonrpcrequest).[method](#jsonrpcrequest-method)params: CreateMessageRequestParams[Permalink](#createmessagerequest-params)Overrides [JSONRPCRequest](#jsonrpcrequest).[params](#jsonrpcrequest-params)

### `CreateMessageRequestParams`

interface CreateMessageRequestParams \{\
  [task](#createmessagerequestparams-task)?: [TaskMetadata](#taskmetadata);\
  [\_meta](#createmessagerequestparams-_meta)?: [RequestMetaObject](#requestmetaobject);\
  [messages](#createmessagerequestparams-messages): [SamplingMessage](#samplingmessage)\[];\
  [modelPreferences](#createmessagerequestparams-modelpreferences)?: [ModelPreferences](#modelpreferences);\
  [systemPrompt](#createmessagerequestparams-systemprompt)?: string;\
  [includeContext](#createmessagerequestparams-includecontext)?: "none" | "thisServer" | "allServers";\
  [temperature](#createmessagerequestparams-temperature)?: number;\
  [maxTokens](#createmessagerequestparams-maxtokens): number;\
  [stopSequences](#createmessagerequestparams-stopsequences)?: string\[];\
  [metadata](#createmessagerequestparams-metadata)?: object;\
  [tools](#createmessagerequestparams-tools)?: [Tool](#tool)\[];\
  [toolChoice](#createmessagerequestparams-toolchoice)?: [ToolChoice](#toolchoice);\
}Parameters for a `sampling/createMessage` request. <details><summary>Example: Basic request[Permalink](#createmessagerequestparams-example-basic-request)</summary><pre id="createmessagerequestparams-example-basic-request">`{  "messages": [    {      "role": "user",      "content": {        "type": "text",        "text": "What is the capital of France?"      }    }  ],  "modelPreferences": {    "hints": [      {        "name": "claude-3-sonnet"      }    ],    "intelligencePriority": 0.8,    "speedPriority": 0.5  },  "systemPrompt": "You are a helpful assistant.",  "maxTokens": 100} `Copy</pre> </details><details><summary>Example: Request with tools[Permalink](#createmessagerequestparams-example-request-with-tools)</summary><pre id="createmessagerequestparams-example-request-with-tools">`{  "messages": [    {      "role": "user",      "content": {        "type": "text",        "text": "What's the weather like in Paris and London?"      }    }  ],  "tools": [    {      "name": "get_weather",      "description": "Get current weather for a city",      "inputSchema": {        "type": "object",        "properties": {          "city": {            "type": "string",            "description": "City name"          }        },        "required": ["city"]      }    }  ],  "toolChoice": {    "mode": "auto"  },  "maxTokens": 1000} `Copy</pre> </details><details><summary>Example: Follow-up request with tool results[Permalink](#createmessagerequestparams-example-follow-up-request-with-tool-results)</summary><pre id="createmessagerequestparams-example-follow-up-request-with-tool-results">`{  "messages": [    {      "role": "user",      "content": {        "type": "text",        "text": "What's the weather like in Paris and London?"      }    },    {      "role": "assistant",      "content": [        {          "type": "tool_use",          "id": "call_abc123",          "name": "get_weather",          "input": { "city": "Paris" }        },        {          "type": "tool_use",          "id": "call_def456",          "name": "get_weather",          "input": { "city": "London" }        }      ]    },    {      "role": "user",      "content": [        {          "type": "tool_result",          "toolUseId": "call_abc123",          "content": [            {              "type": "text",              "text": "Weather in Paris: 18°C, partly cloudy"            }          ]        },        {          "type": "tool_result",          "toolUseId": "call_def456",          "content": [            {              "type": "text",              "text": "Weather in London: 15°C, rainy"            }          ]        }      ]    }  ],  "tools": [    {      "name": "get_weather",      "description": "Get current weather for a city",      "inputSchema": {        "type": "object",        "properties": {          "city": { "type": "string" }        },        "required": ["city"]      }    }  ],  "maxTokens": 1000} `Copy</pre> </details>task?: TaskMetadata[Permalink](#createmessagerequestparams-task)If specified, the caller is requesting task-augmented execution for this request.
The request will return a [CreateTaskResult](#createtaskresult) immediately, and the actual result can be
retrieved later via [tasks/result](#gettaskpayloadrequest). Task augmentation is subject to capability negotiation - receivers MUST declare support
for task augmentation of specific request types in their capabilities. Inherited from TaskAugmentedRequestParams.task\_meta?: RequestMetaObject[Permalink](#createmessagerequestparams-_meta)Inherited from TaskAugmentedRequestParams.\_metamessages: SamplingMessage\[][Permalink](#createmessagerequestparams-messages)modelPreferences?: ModelPreferences[Permalink](#createmessagerequestparams-modelpreferences)The server's preferences for which model to select. The client MAY ignore these preferences. systemPrompt?: string[Permalink](#createmessagerequestparams-systemprompt)An optional system prompt the server wants to use for sampling. The client MAY modify or omit this prompt. includeContext?: "none" | "thisServer" | "allServers"[Permalink](#createmessagerequestparams-includecontext)A request to include context from one or more MCP servers (including the caller), to be attached to the prompt.
The client MAY ignore this request. Default is `"none"`. Values `"thisServer"` and `"allServers"` are soft-deprecated. Servers SHOULD only use these values if the client
declares [ClientCapabilities.sampling.context](#clientcapabilities-sampling). These values may be removed in future spec releases. temperature?: number[Permalink](#createmessagerequestparams-temperature)maxTokens: number[Permalink](#createmessagerequestparams-maxtokens)The requested maximum number of tokens to sample (to prevent runaway completions). The client MAY choose to sample fewer tokens than the requested maximum. stopSequences?: string\[][Permalink](#createmessagerequestparams-stopsequences)metadata?: object[Permalink](#createmessagerequestparams-metadata)Optional metadata to pass through to the LLM provider. The format of this metadata is provider-specific. tools?: Tool\[][Permalink](#createmessagerequestparams-tools)Tools that the model may use during generation.
The client MUST return an error if this field is provided but [ClientCapabilities.sampling.tools](#clientcapabilities-sampling) is not declared. toolChoice?: ToolChoice[Permalink](#createmessagerequestparams-toolchoice)Controls how the model uses tools.
The client MUST return an error if this field is provided but [ClientCapabilities.sampling.tools](#clientcapabilities-sampling) is not declared.
Default is `{ mode: "auto" }`.&#x20;

### `CreateMessageResultResponse`

interface CreateMessageResultResponse \{\
  [jsonrpc](#createmessageresultresponse-jsonrpc): "2.0";\
  [id](#createmessageresultresponse-id): [RequestId](#requestid);\
  [result](#createmessageresultresponse-result): [CreateMessageResult](#createmessageresult);\
}A successful response from the client for a [sampling/createMessage](#createmessagerequest) request. <details><summary>Example: Sampling result response[Permalink](#createmessageresultresponse-example-sampling-result-response)</summary><pre id="createmessageresultresponse-example-sampling-result-response">`{  "jsonrpc": "2.0",  "id": "sampling-example",  "result": {    "role": "assistant",    "content": {      "type": "text",      "text": "The capital of France is Paris."    },    "model": "claude-3-sonnet-20240307",    "stopReason": "endTurn"  }} `Copy</pre> </details>jsonrpc: "2.0"[Permalink](#createmessageresultresponse-jsonrpc)Inherited from [JSONRPCResultResponse](#jsonrpcresultresponse).[jsonrpc](#jsonrpcresultresponse-jsonrpc)id: RequestId[Permalink](#createmessageresultresponse-id)Inherited from [JSONRPCResultResponse](#jsonrpcresultresponse).[id](#jsonrpcresultresponse-id)result: CreateMessageResult[Permalink](#createmessageresultresponse-result)Overrides [JSONRPCResultResponse](#jsonrpcresultresponse).[result](#jsonrpcresultresponse-result)

### `CreateMessageResult`

interface CreateMessageResult \{\
  [\_meta](#createmessageresult-_meta)?: [MetaObject](#metaobject);\
  [model](#createmessageresult-model): string;\
  [stopReason](#createmessageresult-stopreason)?: string;\
  [role](#createmessageresult-role): [Role](#role);\
  [content](#createmessageresult-content): [SamplingMessageContentBlock](#samplingmessagecontentblock) | [SamplingMessageContentBlock](#samplingmessagecontentblock)\[];\
  \[key: string]: unknown;\
}The result returned by the client for a [sampling/createMessage](#createmessagerequest) request.
The client should inform the user before returning the sampled message, to allow them
to inspect the response (human in the loop) and decide whether to allow the server to see it. <details><summary>Example: Text response[Permalink](#createmessageresult-example-text-response)</summary><pre id="createmessageresult-example-text-response">`{  "role": "assistant",  "content": {    "type": "text",    "text": "The capital of France is Paris."  },  "model": "claude-3-sonnet-20240307",  "stopReason": "endTurn"} `Copy</pre> </details><details><summary>Example: Tool use response[Permalink](#createmessageresult-example-tool-use-response)</summary><pre id="createmessageresult-example-tool-use-response">`{  "role": "assistant",  "content": [    {      "type": "tool_use",      "id": "call_abc123",      "name": "get_weather",      "input": {        "city": "Paris"      }    },    {      "type": "tool_use",      "id": "call_def456",      "name": "get_weather",      "input": {        "city": "London"      }    }  ],  "model": "claude-3-sonnet-20240307",  "stopReason": "toolUse"} `Copy</pre> </details><details><summary>Example: Final response after tool use[Permalink](#createmessageresult-example-final-response-after-tool-use)</summary><pre id="createmessageresult-example-final-response-after-tool-use">`{  "role": "assistant",  "content": {    "type": "text",    "text": "Based on the current weather data:\n\n- **Paris**: 18°C and partly cloudy - quite pleasant!\n- **London**: 15°C and rainy - you'll want an umbrella.\n\nParis has slightly warmer and drier conditions today."  },  "model": "claude-3-sonnet-20240307",  "stopReason": "endTurn"} `Copy</pre> </details>\_meta?: MetaObject[Permalink](#createmessageresult-_meta)Inherited from [Result](#result).[\_meta](#result-_meta)model: string[Permalink](#createmessageresult-model)The name of the model that generated the message. stopReason?: string[Permalink](#createmessageresult-stopreason)The reason why sampling stopped, if known. Standard values: <ul> <li>`"endTurn"`: Natural end of the assistant's turn</li> <li>`"stopSequence"`: A stop sequence was encountered</li> <li>`"maxTokens"`: Maximum token limit was reached</li> <li>`"toolUse"`: The model wants to use one or more tools</li> </ul> This field is an open string to allow for provider-specific stop reasons. role: Role[Permalink](#createmessageresult-role)Inherited from [SamplingMessage](#samplingmessage).[role](#samplingmessage-role)content: SamplingMessageContentBlock | SamplingMessageContentBlock\[][Permalink](#createmessageresult-content)Inherited from [SamplingMessage](#samplingmessage).[content](#samplingmessage-content)

### `ModelHint`

interface ModelHint \{\
  [name](#modelhint-name)?: string;\
}Hints to use for model selection. Keys not declared here are currently left unspecified by the spec and are up
to the client to interpret. name?: string[Permalink](#modelhint-name)A hint for a model name. The client SHOULD treat this as a substring of a model name; for example: <ul> <li>`claude-3-5-sonnet` should match `claude-3-5-sonnet-20241022`</li> <li>`sonnet` should match `claude-3-5-sonnet-20241022`, `claude-3-sonnet-20240229`, etc.</li> <li>`claude` should match any Claude model</li> </ul> The client MAY also map the string to a different provider's model name or a different model family, as long as it fills a similar niche; for example: <ul> <li>`gemini-1.5-flash` could match `claude-3-haiku-20240307`</li> </ul>&#x20;

### `ModelPreferences`

interface ModelPreferences \{\
  [hints](#modelpreferences-hints)?: [ModelHint](#modelhint)\[];\
  [costPriority](#modelpreferences-costpriority)?: number;\
  [speedPriority](#modelpreferences-speedpriority)?: number;\
  [intelligencePriority](#modelpreferences-intelligencepriority)?: number;\
}The server's preferences for model selection, requested of the client during sampling. Because LLMs can vary along multiple dimensions, choosing the "best" model is
rarely straightforward.  Different models excel in different areas—some are
faster but less capable, others are more capable but more expensive, and so
on. This interface allows servers to express their priorities across multiple
dimensions to help clients make an appropriate selection for their use case. These preferences are always advisory. The client MAY ignore them. It is also
up to the client to decide how to interpret these preferences and how to
balance them against other considerations. <details><summary>Example: With hints and priorities[Permalink](#modelpreferences-example-with-hints-and-priorities)</summary><pre id="modelpreferences-example-with-hints-and-priorities">`{  "hints": [    { "name": "claude-3-sonnet" },    { "name": "claude" }  ],  "costPriority": 0.3,  "speedPriority": 0.8,  "intelligencePriority": 0.5} `Copy</pre> </details>hints?: ModelHint\[][Permalink](#modelpreferences-hints)Optional hints to use for model selection. If multiple hints are specified, the client MUST evaluate them in order
(such that the first match is taken). The client SHOULD prioritize these hints over the numeric priorities, but
MAY still use the priorities to select from ambiguous matches. costPriority?: number[Permalink](#modelpreferences-costpriority)How much to prioritize cost when selecting a model. A value of 0 means cost
is not important, while a value of 1 means cost is the most important
factor. speedPriority?: number[Permalink](#modelpreferences-speedpriority)How much to prioritize sampling speed (latency) when selecting a model. A
value of 0 means speed is not important, while a value of 1 means speed is
the most important factor. intelligencePriority?: number[Permalink](#modelpreferences-intelligencepriority)How much to prioritize intelligence and capabilities when selecting a
model. A value of 0 means intelligence is not important, while a value of 1
means intelligence is the most important factor.&#x20;

### `SamplingMessage`

interface SamplingMessage \{\
  [role](#samplingmessage-role): [Role](#role);\
  [content](#samplingmessage-content): [SamplingMessageContentBlock](#samplingmessagecontentblock) | [SamplingMessageContentBlock](#samplingmessagecontentblock)\[];\
  [\_meta](#samplingmessage-_meta)?: [MetaObject](#metaobject);\
}Describes a message issued to or received from an LLM API. <details><summary>Example: Single content block[Permalink](#samplingmessage-example-single-content-block)</summary><pre id="samplingmessage-example-single-content-block">`{  "role": "user",  "content": {    "type": "text",    "text": "What is the capital of France?"  }} `Copy</pre> </details><details><summary>Example: Multiple content blocks[Permalink](#samplingmessage-example-multiple-content-blocks)</summary><pre id="samplingmessage-example-multiple-content-blocks">`{  "role": "user",  "content": [    {      "type": "tool_result",      "toolUseId": "call_123",      "content": [{ "type": "text", "text": "Result 1" }]    },    {      "type": "tool_result",      "toolUseId": "call_456",      "content": [{ "type": "text", "text": "Result 2" }]    }  ]} `Copy</pre> </details>role: Role[Permalink](#samplingmessage-role)content: SamplingMessageContentBlock | SamplingMessageContentBlock\[][Permalink](#samplingmessage-content)\_meta?: MetaObject[Permalink](#samplingmessage-_meta)

### `SamplingMessageContentBlock`

SamplingMessageContentBlock:\
  | [TextContent](#textcontent)\
  | [ImageContent](#imagecontent)\
  | [AudioContent](#audiocontent)\
  | [ToolUseContent](#toolusecontent)\
  | [ToolResultContent](#toolresultcontent)

### `ToolChoice`

interface ToolChoice \{\
  [mode](#toolchoice-mode)?: "none" | "required" | "auto";\
}Controls tool selection behavior for sampling requests. mode?: "none" | "required" | "auto"[Permalink](#toolchoice-mode)Controls the tool use ability of the model: <ul> <li>`"auto"`: Model decides whether to use tools (default)</li> <li>`"required"`: Model MUST use at least one tool before completing</li> <li>`"none"`: Model MUST NOT use any tools</li> </ul>&#x20;

### `ToolResultContent`

interface ToolResultContent \{\
  [type](#toolresultcontent-type): "tool\_result";\
  [toolUseId](#toolresultcontent-tooluseid): string;\
  [content](#toolresultcontent-content): [ContentBlock](#contentblock)\[];\
  [structuredContent](#toolresultcontent-structuredcontent)?: \{ \[key: string]: unknown };\
  [isError](#toolresultcontent-iserror)?: boolean;\
  [\_meta](#toolresultcontent-_meta)?: [MetaObject](#metaobject);\
}The result of a tool use, provided by the user back to the assistant. <details><summary>Example: \`get\_weather\` tool result[Permalink](#toolresultcontent-example-get_weather-tool-result)</summary><pre id="toolresultcontent-example-get_weather-tool-result">`{  "type": "tool_result",  "toolUseId": "call_abc123",  "content": [    {      "type": "text",      "text": "Weather in Paris: 18°C, partly cloudy"    }  ]} `Copy</pre> </details>type: "tool\_result"[Permalink](#toolresultcontent-type)toolUseId: string[Permalink](#toolresultcontent-tooluseid)The ID of the tool use this result corresponds to. This MUST match the ID from a previous [ToolUseContent](#toolusecontent). content: ContentBlock\[][Permalink](#toolresultcontent-content)The unstructured result content of the tool use. This has the same format as [CallToolResult.content](#calltoolresult-content) and can include text, images,
audio, resource links, and embedded resources. structuredContent?: \{ \[key: string]: unknown }[Permalink](#toolresultcontent-structuredcontent)An optional structured result object. If the tool defined an [Tool.outputSchema](#tool-outputschema), this SHOULD conform to that schema. isError?: boolean[Permalink](#toolresultcontent-iserror)Whether the tool use resulted in an error. If true, the content typically describes the error that occurred.
Default: false \_meta?: MetaObject[Permalink](#toolresultcontent-_meta)Optional metadata about the tool result. Clients SHOULD preserve this field when
including tool results in subsequent sampling requests to enable caching optimizations.&#x20;

### `ToolUseContent`

interface ToolUseContent \{\
  [type](#toolusecontent-type): "tool\_use";\
  [id](#toolusecontent-id): string;\
  [name](#toolusecontent-name): string;\
  [input](#toolusecontent-input): \{ \[key: string]: unknown };\
  [\_meta](#toolusecontent-_meta)?: [MetaObject](#metaobject);\
}A request from the assistant to call a tool. <details><summary>Example: \`get\_weather\` tool use[Permalink](#toolusecontent-example-get_weather-tool-use)</summary><pre id="toolusecontent-example-get_weather-tool-use">`{  "type": "tool_use",  "id": "call_abc123",  "name": "get_weather",  "input": {    "city": "Paris"  }} `Copy</pre> </details>type: "tool\_use"[Permalink](#toolusecontent-type)id: string[Permalink](#toolusecontent-id)A unique identifier for this tool use. This ID is used to match tool results to their corresponding tool uses. name: string[Permalink](#toolusecontent-name)The name of the tool to call. input: \{ \[key: string]: unknown }[Permalink](#toolusecontent-input)The arguments to pass to the tool, conforming to the tool's input schema. \_meta?: MetaObject[Permalink](#toolusecontent-_meta)Optional metadata about the tool use. Clients SHOULD preserve this field when
including tool uses in subsequent sampling requests to enable caching optimizations.&#x20;

## `tools/call`

### `CallToolRequest`

interface CallToolRequest \{\
  [jsonrpc](#calltoolrequest-jsonrpc): "2.0";\
  [id](#calltoolrequest-id): [RequestId](#requestid);\
  [method](#calltoolrequest-method): "tools/call";\
  [params](#calltoolrequest-params): [CallToolRequestParams](#calltoolrequestparams);\
}Used by the client to invoke a tool provided by the server. <details><summary>Example: Call tool request[Permalink](#calltoolrequest-example-call-tool-request)</summary><pre id="calltoolrequest-example-call-tool-request">`{  "jsonrpc": "2.0",  "id": "call-tool-example",  "method": "tools/call",  "params": {    "name": "get_weather",    "arguments": {      "location": "New York"    }  }} `Copy</pre> </details>jsonrpc: "2.0"[Permalink](#calltoolrequest-jsonrpc)Inherited from [JSONRPCRequest](#jsonrpcrequest).[jsonrpc](#jsonrpcrequest-jsonrpc)id: RequestId[Permalink](#calltoolrequest-id)Inherited from [JSONRPCRequest](#jsonrpcrequest).[id](#jsonrpcrequest-id)method: "tools/call"[Permalink](#calltoolrequest-method)Overrides [JSONRPCRequest](#jsonrpcrequest).[method](#jsonrpcrequest-method)params: CallToolRequestParams[Permalink](#calltoolrequest-params)Overrides [JSONRPCRequest](#jsonrpcrequest).[params](#jsonrpcrequest-params)

### `CallToolRequestParams`

interface CallToolRequestParams \{\
  [task](#calltoolrequestparams-task)?: [TaskMetadata](#taskmetadata);\
  [\_meta](#calltoolrequestparams-_meta)?: [RequestMetaObject](#requestmetaobject);\
  [name](#calltoolrequestparams-name): string;\
  [arguments](#calltoolrequestparams-arguments)?: \{ \[key: string]: unknown };\
}Parameters for a `tools/call` request. <details><summary>Example: \`get\_weather\` tool call params[Permalink](#calltoolrequestparams-example-get_weather-tool-call-params)</summary><pre id="calltoolrequestparams-example-get_weather-tool-call-params">`{  "name": "get_weather",  "arguments": {    "location": "New York"  }} `Copy</pre> </details><details><summary>Example: Tool call params with progress token[Permalink](#calltoolrequestparams-example-tool-call-params-with-progress-token)</summary><pre id="calltoolrequestparams-example-tool-call-params-with-progress-token">`{  "_meta": {    "progressToken": "oivaizmir"  },  "name": "build_simulation",  "arguments": {    "city": "Micropolis"  }} `Copy</pre> </details>task?: TaskMetadata[Permalink](#calltoolrequestparams-task)If specified, the caller is requesting task-augmented execution for this request.
The request will return a [CreateTaskResult](#createtaskresult) immediately, and the actual result can be
retrieved later via [tasks/result](#gettaskpayloadrequest). Task augmentation is subject to capability negotiation - receivers MUST declare support
for task augmentation of specific request types in their capabilities. Inherited from TaskAugmentedRequestParams.task\_meta?: RequestMetaObject[Permalink](#calltoolrequestparams-_meta)Inherited from TaskAugmentedRequestParams.\_metaname: string[Permalink](#calltoolrequestparams-name)The name of the tool. arguments?: \{ \[key: string]: unknown }[Permalink](#calltoolrequestparams-arguments)Arguments to use for the tool call.&#x20;

### `CallToolResultResponse`

interface CallToolResultResponse \{\
  [jsonrpc](#calltoolresultresponse-jsonrpc): "2.0";\
  [id](#calltoolresultresponse-id): [RequestId](#requestid);\
  [result](#calltoolresultresponse-result): [CallToolResult](#calltoolresult);\
}A successful response from the server for a [tools/call](#calltoolrequest) request. <details><summary>Example: Call tool result response[Permalink](#calltoolresultresponse-example-call-tool-result-response)</summary><pre id="calltoolresultresponse-example-call-tool-result-response">`{  "jsonrpc": "2.0",  "id": "call-tool-example",  "result": {    "content": [      {        "type": "text",        "text": "Current weather in New York:\nTemperature: 72°F\nConditions: Partly cloudy"      }    ],    "isError": false  }} `Copy</pre> </details>jsonrpc: "2.0"[Permalink](#calltoolresultresponse-jsonrpc)Inherited from [JSONRPCResultResponse](#jsonrpcresultresponse).[jsonrpc](#jsonrpcresultresponse-jsonrpc)id: RequestId[Permalink](#calltoolresultresponse-id)Inherited from [JSONRPCResultResponse](#jsonrpcresultresponse).[id](#jsonrpcresultresponse-id)result: CallToolResult[Permalink](#calltoolresultresponse-result)Overrides [JSONRPCResultResponse](#jsonrpcresultresponse).[result](#jsonrpcresultresponse-result)

### `CallToolResult`

interface CallToolResult \{\
  [\_meta](#calltoolresult-_meta)?: [MetaObject](#metaobject);\
  [content](#calltoolresult-content): [ContentBlock](#contentblock)\[];\
  [structuredContent](#calltoolresult-structuredcontent)?: \{ \[key: string]: unknown };\
  [isError](#calltoolresult-iserror)?: boolean;\
  \[key: string]: unknown;\
}The result returned by the server for a [tools/call](#calltoolrequest) request. <details><summary>Example: Result with unstructured text[Permalink](#calltoolresult-example-result-with-unstructured-text)</summary><pre id="calltoolresult-example-result-with-unstructured-text">`{  "content": [    {      "type": "text",      "text": "Current weather in New York:\nTemperature: 72°F\nConditions: Partly cloudy"    }  ],  "isError": false} `Copy</pre> </details><details><summary>Example: Result with structured content[Permalink](#calltoolresult-example-result-with-structured-content)</summary><pre id="calltoolresult-example-result-with-structured-content">`{  "content": [    {      "type": "text",      "text": "{\"temperature\": 22.5, \"conditions\": \"Partly cloudy\", \"humidity\": 65}"    }  ],  "structuredContent": {    "temperature": 22.5,    "conditions": "Partly cloudy",    "humidity": 65  }} `Copy</pre> </details><details><summary>Example: Invalid tool input error[Permalink](#calltoolresult-example-invalid-tool-input-error)</summary><pre id="calltoolresult-example-invalid-tool-input-error">`{  "content": [    {      "type": "text",      "text": "Invalid departure date: must be in the future. Current date is 08/08/2025."    }  ],  "isError": true} `Copy</pre> </details>\_meta?: MetaObject[Permalink](#calltoolresult-_meta)Inherited from [Result](#result).[\_meta](#result-_meta)content: ContentBlock\[][Permalink](#calltoolresult-content)A list of content objects that represent the unstructured result of the tool call. structuredContent?: \{ \[key: string]: unknown }[Permalink](#calltoolresult-structuredcontent)An optional JSON object that represents the structured result of the tool call. isError?: boolean[Permalink](#calltoolresult-iserror)Whether the tool call ended in an error. If not set, this is assumed to be false (the call was successful). Any errors that originate from the tool SHOULD be reported inside the result
object, with `isError` set to true, *not* as an MCP protocol-level error
response. Otherwise, the LLM would not be able to see that an error occurred
and self-correct. However, any errors in *finding* the tool, an error indicating that the
server does not support tool calls, or any other exceptional conditions,
should be reported as an MCP error response.&#x20;

## `tools/list`

### `ListToolsRequest`

interface ListToolsRequest \{\
  [jsonrpc](#listtoolsrequest-jsonrpc): "2.0";\
  [id](#listtoolsrequest-id): [RequestId](#requestid);\
  [params](#listtoolsrequest-params)?: [PaginatedRequestParams](#paginatedrequestparams);\
  [method](#listtoolsrequest-method): "tools/list";\
}Sent from the client to request a list of tools the server has. <details><summary>Example: List tools request[Permalink](#listtoolsrequest-example-list-tools-request)</summary><pre id="listtoolsrequest-example-list-tools-request">`{  "jsonrpc": "2.0",  "id": "list-tools-example",  "method": "tools/list"} `Copy</pre> </details>jsonrpc: "2.0"[Permalink](#listtoolsrequest-jsonrpc)Inherited from PaginatedRequest.jsonrpcid: RequestId[Permalink](#listtoolsrequest-id)Inherited from PaginatedRequest.idparams?: PaginatedRequestParams[Permalink](#listtoolsrequest-params)Inherited from PaginatedRequest.paramsmethod: "tools/list"[Permalink](#listtoolsrequest-method)Overrides PaginatedRequest.method

### `ListToolsResultResponse`

interface ListToolsResultResponse \{\
  [jsonrpc](#listtoolsresultresponse-jsonrpc): "2.0";\
  [id](#listtoolsresultresponse-id): [RequestId](#requestid);\
  [result](#listtoolsresultresponse-result): [ListToolsResult](#listtoolsresult);\
}A successful response from the server for a [tools/list](#listtoolsrequest) request. <details><summary>Example: List tools result response[Permalink](#listtoolsresultresponse-example-list-tools-result-response)</summary><pre id="listtoolsresultresponse-example-list-tools-result-response">`{  "jsonrpc": "2.0",  "id": "list-tools-example",  "result": {    "tools": [      {        "name": "get_weather",        "title": "Weather Information Provider",        "description": "Get current weather information for a location",        "inputSchema": {          "type": "object",          "properties": {            "location": {              "type": "string",              "description": "City name or zip code"            }          },          "required": ["location"]        },        "icons": [          {            "src": "https://example.com/weather-icon.png",            "mimeType": "image/png",            "sizes": ["48x48"]          }        ]      }    ],    "nextCursor": "next-page-cursor"  }} `Copy</pre> </details>jsonrpc: "2.0"[Permalink](#listtoolsresultresponse-jsonrpc)Inherited from [JSONRPCResultResponse](#jsonrpcresultresponse).[jsonrpc](#jsonrpcresultresponse-jsonrpc)id: RequestId[Permalink](#listtoolsresultresponse-id)Inherited from [JSONRPCResultResponse](#jsonrpcresultresponse).[id](#jsonrpcresultresponse-id)result: ListToolsResult[Permalink](#listtoolsresultresponse-result)Overrides [JSONRPCResultResponse](#jsonrpcresultresponse).[result](#jsonrpcresultresponse-result)

### `ListToolsResult`

interface ListToolsResult \{\
  [\_meta](#listtoolsresult-_meta)?: [MetaObject](#metaobject);\
  [nextCursor](#listtoolsresult-nextcursor)?: string;\
  [tools](#listtoolsresult-tools): [Tool](#tool)\[];\
  \[key: string]: unknown;\
}The result returned by the server for a [tools/list](#listtoolsrequest) request. <details><summary>Example: Tools list with cursor[Permalink](#listtoolsresult-example-tools-list-with-cursor)</summary><pre id="listtoolsresult-example-tools-list-with-cursor">`{  "tools": [    {      "name": "get_weather",      "title": "Weather Information Provider",      "description": "Get current weather information for a location",      "inputSchema": {        "type": "object",        "properties": {          "location": {            "type": "string",            "description": "City name or zip code"          }        },        "required": ["location"]      },      "icons": [        {          "src": "https://example.com/weather-icon.png",          "mimeType": "image/png",          "sizes": ["48x48"]        }      ]    }  ],  "nextCursor": "next-page-cursor"} `Copy</pre> </details>\_meta?: MetaObject[Permalink](#listtoolsresult-_meta)Inherited from PaginatedResult.\_metanextCursor?: string[Permalink](#listtoolsresult-nextcursor)An opaque token representing the pagination position after the last returned result.
If present, there may be more results available. Inherited from PaginatedResult.nextCursortools: Tool\[][Permalink](#listtoolsresult-tools)

### `Tool`

interface Tool \{\
  [icons](#tool-icons)?: [Icon](#icon)\[];\
  [name](#tool-name): string;\
  [title](#tool-title)?: string;\
  [description](#tool-description)?: string;\
  [inputSchema](#tool-inputschema): \{\
    \$schema?: string;\
    type: "object";\
    properties?: \{ \[key: string]: object };\
    required?: string\[];\
  };\
  [execution](#tool-execution)?: [ToolExecution](#toolexecution);\
  [outputSchema](#tool-outputschema)?: \{\
    \$schema?: string;\
    type: "object";\
    properties?: \{ \[key: string]: object };\
    required?: string\[];\
  };\
  [annotations](#tool-annotations)?: [ToolAnnotations](#toolannotations);\
  [\_meta](#tool-_meta)?: [MetaObject](#metaobject);\
}Definition for a tool the client can call. <details><summary>Example: With default 2020-12 input schema[Permalink](#tool-example-with-default-2020-12-input-schema)</summary><pre id="tool-example-with-default-2020-12-input-schema">`{  "name": "calculate_sum",  "description": "Add two numbers",  "inputSchema": {    "type": "object",    "properties": {      "a": { "type": "number" },      "b": { "type": "number" }    },    "required": ["a", "b"]  }} `Copy</pre> </details><details><summary>Example: With explicit draft-07 input schema[Permalink](#tool-example-with-explicit-draft-07-input-schema)</summary><pre id="tool-example-with-explicit-draft-07-input-schema">`{  "name": "calculate_sum",  "description": "Add two numbers",  "inputSchema": {    "$schema": "http://json-schema.org/draft-07/schema#",    "type": "object",    "properties": {      "a": { "type": "number" },      "b": { "type": "number" }    },    "required": ["a", "b"]  }} `Copy</pre> </details><details><summary>Example: With no parameters[Permalink](#tool-example-with-no-parameters)</summary><pre id="tool-example-with-no-parameters">`{  "name": "get_current_time",  "description": "Returns the current server time",  "inputSchema": {    "type": "object",    "additionalProperties": false  }} `Copy</pre> </details><details><summary>Example: With output schema for structured content[Permalink](#tool-example-with-output-schema-for-structured-content)</summary><pre id="tool-example-with-output-schema-for-structured-content">`{  "name": "get_weather_data",  "title": "Weather Data Retriever",  "description": "Get current weather data for a location",  "inputSchema": {    "type": "object",    "properties": {      "location": {        "type": "string",        "description": "City name or zip code"      }    },    "required": ["location"]  },  "outputSchema": {    "type": "object",    "properties": {      "temperature": {        "type": "number",        "description": "Temperature in celsius"      },      "conditions": {        "type": "string",        "description": "Weather conditions description"      },      "humidity": {        "type": "number",        "description": "Humidity percentage"      }    },    "required": ["temperature", "conditions", "humidity"]  }} `Copy</pre> </details>icons?: Icon\[][Permalink](#tool-icons)Optional set of sized icons that the client can display in a user interface. Clients that support rendering icons MUST support at least the following MIME types: <ul> <li>`image/png` - PNG images (safe, universal compatibility)</li> <li>`image/jpeg` (and `image/jpg`) - JPEG images (safe, universal compatibility)</li> </ul> Clients that support rendering icons SHOULD also support: <ul> <li>`image/svg+xml` - SVG images (scalable but requires security precautions)</li> <li>`image/webp` - WebP images (modern, efficient format)</li> </ul> Inherited from Icons.iconsname: string[Permalink](#tool-name)Intended for programmatic or logical use, but used as a display name in past specs or fallback (if title isn't present). Inherited from BaseMetadata.nametitle?: string[Permalink](#tool-title)Intended for UI and end-user contexts — optimized to be human-readable and easily understood,
even by those unfamiliar with domain-specific terminology. If not provided, the name should be used for display (except for [Tool](#),
where `annotations.title` should be given precedence over using `name`,
if present). Inherited from BaseMetadata.titledescription?: string[Permalink](#tool-description)A human-readable description of the tool. This can be used by clients to improve the LLM's understanding of available tools. It can be thought of like a "hint" to the model. inputSchema: \{    \$schema?: string;    type: "object";    properties?: \{ \[key: string]: object };    required?: string\[]; }[Permalink](#tool-inputschema)A JSON Schema object defining the expected parameters for the tool. execution?: ToolExecution[Permalink](#tool-execution)Execution-related properties for this tool. outputSchema?: \{    \$schema?: string;    type: "object";    properties?: \{ \[key: string]: object };    required?: string\[]; }[Permalink](#tool-outputschema)An optional JSON Schema object defining the structure of the tool's output returned in
the structuredContent field of a [CallToolResult](#calltoolresult). Defaults to JSON Schema 2020-12 when no explicit `$schema` is provided.
Currently restricted to `type: "object"` at the root level. annotations?: ToolAnnotations[Permalink](#tool-annotations)Optional additional tool information. Display name precedence order is: `title`, `annotations.title`, then `name`. \_meta?: MetaObject[Permalink](#tool-_meta)

### `ToolAnnotations`

interface ToolAnnotations \{\
  [title](#toolannotations-title)?: string;\
  [readOnlyHint](#toolannotations-readonlyhint)?: boolean;\
  [destructiveHint](#toolannotations-destructivehint)?: boolean;\
  [idempotentHint](#toolannotations-idempotenthint)?: boolean;\
  [openWorldHint](#toolannotations-openworldhint)?: boolean;\
}Additional properties describing a [Tool](#tool) to clients. NOTE: all properties in `ToolAnnotations` are **hints**.
They are not guaranteed to provide a faithful description of
tool behavior (including descriptive properties like `title`). Clients should never make tool use decisions based on `ToolAnnotations`
received from untrusted servers. title?: string[Permalink](#toolannotations-title)A human-readable title for the tool. readOnlyHint?: boolean[Permalink](#toolannotations-readonlyhint)If true, the tool does not modify its environment. Default: false destructiveHint?: boolean[Permalink](#toolannotations-destructivehint)If true, the tool may perform destructive updates to its environment.
If false, the tool performs only additive updates. (This property is meaningful only when `readOnlyHint == false`) Default: true idempotentHint?: boolean[Permalink](#toolannotations-idempotenthint)If true, calling the tool repeatedly with the same arguments
will have no additional effect on its environment. (This property is meaningful only when `readOnlyHint == false`) Default: false openWorldHint?: boolean[Permalink](#toolannotations-openworldhint)If true, this tool may interact with an "open world" of external
entities. If false, the tool's domain of interaction is closed.
For example, the world of a web search tool is open, whereas that
of a memory tool is not. Default: true&#x20;

### `ToolExecution`

interface ToolExecution \{\
  [taskSupport](#toolexecution-tasksupport)?: "forbidden" | "optional" | "required";\
}Execution-related properties for a tool. taskSupport?: "forbidden" | "optional" | "required"[Permalink](#toolexecution-tasksupport)Indicates whether this tool supports task-augmented execution.
This allows clients to handle long-running operations through polling
the task system. <ul> <li>`"forbidden"`: Tool does not support task-augmented execution (default when absent)</li> <li>`"optional"`: Tool may support task-augmented execution</li> <li>`"required"`: Tool requires task-augmented execution</li> </ul> Default: `"forbidden"`&#x20;


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.