Fern · Schema

Fern MCP Tool Invocation

Schema describing a Model Context Protocol tool call exposed by the Fern MCP server (e.g. ask_fern_ai).

Agent ReadyAIAPI DefinitionsAsyncAPICode GenerationDeveloper ExperienceDeveloper PortalDocumentationgRPCllms.txtMCPOpenAPIOpenRPCPlatformProtobufSDKsWebSockets

Properties

Name Type Description
tool string Name of the MCP tool to invoke.
input object
transport string MCP transport used by the calling client.
client string Calling AI client.
View JSON Schema on GitHub

JSON Schema

fern-mcp-tool-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/fern/main/json-schema/fern-mcp-tool-schema.json",
  "title": "Fern MCP Tool Invocation",
  "description": "Schema describing a Model Context Protocol tool call exposed by the Fern MCP server (e.g. ask_fern_ai).",
  "type": "object",
  "required": ["tool", "input"],
  "properties": {
    "tool": {
      "type": "string",
      "description": "Name of the MCP tool to invoke.",
      "enum": ["ask_fern_ai"]
    },
    "input": {
      "type": "object",
      "required": ["query"],
      "properties": {
        "query": {
          "type": "string",
          "description": "Natural-language question routed to the Ask Fern AI knowledge base."
        },
        "docsSite": {
          "type": "string",
          "description": "Optional Fern docs site slug to scope the query."
        }
      }
    },
    "transport": {
      "type": "string",
      "enum": ["stdio", "http"],
      "description": "MCP transport used by the calling client."
    },
    "client": {
      "type": "string",
      "enum": ["claude-desktop", "claude-code", "cursor", "windsurf", "other"],
      "description": "Calling AI client."
    }
  }
}