Unverified50% confidenceSolutionExact time
Write a tool once in an MCP Server, and the Agent can connect via stdio or streamable HTTP, and when errors occur, ToolError should be used first.
1
Sources
50%
Confidence
Long-term
Relevance
10/12/2026
First Seen
Sources
Related Entities
Related Claims
UnverifiedWhen a Client connects for the first time, an MCP Server performs a handshake process and returns the supported tool list, capability descriptions, JSON Schema definitions for input parameters, and return value formats.74% similarUnverifiedWhen creating an MCP server in Cognipeer Console, you can select OpenAPI under Tool Source and provide the OpenAPI specification by pasting JSON/YAML, uploading a file, or loading from a URL.73% similarUnverifiedWhen throwing exceptions in MCP tools, ToolError should be used instead of ordinary ValueError, because ToolError lets the model see the explicit reason and return value, whereas ordinary exceptions may cause the Agent to see only 'tool execution failed' or even trigger meaningless automatic retries.73% similarUnverifiedMCP Server uses two annotations, @Tool and @ToolParam, to declare tool capabilities: @Tool is annotated on methods and @ToolParam is annotated on parameters.72% similar
Cite This Claim
Stable URI
https://kongchang.com/claim/1007872API
curl https://kongchang.com/api/v1/knowledge/claims/1007872MCP
get_claim(id=1007872)