We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/j0hanz/fs-context-mcp-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server
contract.ts•1.08 KiB
import type { ZodType } from 'zod';
export interface ToolContract {
/**
* The unique name of the tool (e.g., "read", "grep").
* This name is used in registration and client calls.
*/
name: string;
/**
* A short human-readable title for documentation (e.g., "Read File").
*/
title: string;
/**
* A detailed description of what the tool does.
*/
description: string;
/**
* Zod schema for the tool's input arguments.
*/
inputSchema: ZodType;
/**
* Zod schema for the tool's output result (optional).
*/
outputSchema?: ZodType;
/**
* Optional annotations for tool behavior hints.
*/
annotations?: {
readOnlyHint?: boolean;
idempotentHint?: boolean;
destructiveHint?: boolean;
openWorldHint?: boolean;
};
/**
* Specific usage nuances or edge cases for documentation.
*/
nuances?: string[];
/**
* Common pitfalls or warnings for documentation.
*/
gotchas?: string[];
/**
* Task support level for the tool. Defaults to 'optional'.
*/
taskSupport?: 'optional' | 'required' | 'forbidden';
}