MCP

MCP Attributes

Model Context Protocol (MCP) attributes

Attributes:

KeyStabilityValue TypeDescriptionExample Values
mcp.method.nameDevelopmentstringThe name of the request or notification method.notifications/cancelled; initialize; notifications/initialized
mcp.protocol.versionDevelopmentstringThe version of the Model Context Protocol used.2025-06-18
mcp.resource.uriDevelopmentstringThe value of the resource uri. [1]postgres://database/customers/schema; file:///home/user/documents/report.pdf
mcp.session.idDevelopmentstringIdentifies MCP session.191c4850af6c49e08843a3f6c80e5046

[1] mcp.resource.uri: This is a URI of the resource provided in the following requests or notifications: resources/read, resources/subscribe, resources/unsubscribe, or notifications/resources/updated.


mcp.method.name has the following list of well-known values. If one of them applies, then the respective value MUST be used; otherwise, a custom value MAY be used.

ValueDescriptionStability
completion/completeRequest to complete a prompt.Development
elicitation/createRequest from the server to elicit additional information from the user via the clientDevelopment
initializeRequest to initialize the MCP client.Development
logging/setLevelRequest to set the logging level.Development
notifications/cancelledNotification cancelling a previously-issued request.Development
notifications/initializedNotification indicating that the MCP client has been initialized.Development
notifications/messageNotification indicating that a message has been received.Development
notifications/progressNotification indicating the progress for a long-running operation.Development
notifications/prompts/list_changedNotification indicating that the list of prompts has changed.Development
notifications/resources/list_changedNotification indicating that the list of resources has changed.Development
notifications/resources/updatedNotification indicating that a resource has been updated.Development
notifications/roots/list_changedNotification indicating that the list of roots has changed.Development
notifications/tools/list_changedNotification indicating that the list of tools has changed.Development
pingRequest to check that the other party is still alive.Development
prompts/getRequest to get a prompt.Development
prompts/listRequest to list prompts available on server.Development
resources/listRequest to list resources available on server.Development
resources/readRequest to read a resource.Development
resources/subscribeRequest to subscribe to a resource.Development
resources/templates/listRequest to list resource templates available on server.Development
resources/unsubscribeRequest to unsubscribe from resource updates.Development
roots/listRequest to list roots available on server.Development
sampling/createMessageRequest to create a sampling message.Development
tools/callRequest to call a tool.Development
tools/listRequest to list tools available on server.Development