-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Description
Long talk in the office with @flenter about estimating token cost. Here are the notes
Certain mcp methods have a relatively straightforward cost ("tokens") associated with them. For instance:
tools/callrequest: the LLM had to produce tokens to call the tool. this token count is of course dependent on the LLMtools/callresponse: the LLM will read the tokens returned in the content block(s)resources/readresponse: the LLM will add the document to contextprompts/getresponse: the prompt result will be passed to the LLM
Other mcp methods clearly have no cost associated with them:
pinginitializenotifications/initializedprompts/listreq/res: the list of prompts is requested by the mcp client, and stored as application-level state. not injected into the llm's contextprompts/getrequest: this is executed by the client, but not the llm
Other mcp methods are ambiguous:
resources/listreq/res: this could be initiated at the application level, or (in the instance of Claude Code) the LLM might have a tool to read MCP resourcesresources/readrequest: same as above
Metadata
Metadata
Assignees
Labels
No labels