What makes a good tool schema?
A good tool schema uses a clear name, concise description, typed parameters, required fields, enums or bounds where appropriate, and a small scope.
The question library
Explore practical questions, clear explanations, and code examples across developer technologies.
Showing 169–180 of 3610 questions
A good tool schema uses a clear name, concise description, typed parameters, required fields, enums or bounds where appropriate, and a small scope.
Human approval is appropriate for consequential, irreversible, high-cost, privacy-sensitive, or externally visible actions.
Set a maximum tool-call count or wall-clock budget, detect repeated identical calls, and provide clear stop and escalation conditions.
MCP is a protocol for connecting AI applications to external tools and context providers through a standardized interface.
The host is the AI application, the client manages a protocol connection, and the server exposes capabilities to that client.
An MCP tool is an operation a server exposes for a client to discover and invoke with structured input.
An MCP resource exposes context such as documents, files, or application data through a protocol-defined reference.
An MCP prompt is a reusable prompt template or guided interaction exposed by a server.
An MCP client requests the server's available tool definitions and uses their names, descriptions, and input schemas to decide which capabilities may be relevant.
Use the authentication and authorization mechanism appropriate to the transport and deployment, such as scoped tokens or an authenticated local process.
An untrusted server may expose malicious instructions, deceptive tool descriptions, unauthorized data access, or dangerous side effects.
Enforce authorization inside the server using the authenticated principal and resource-level policy.