---
title: McpTool
description: 'An MCP tool page, from `operation` metadata with `protocol: mcp`.'
updated_at: '2026-10-26T13:54:51+01:00'
created_at: '2026-10-26T13:54:51+01:00'
symbol:
  kind: interface
  name: McpTool
  signatures:
    - interface McpTool
  members:
    - name: kind
      kind: property
      signature: 'readonly kind: "tool"'
    - name: name
      kind: property
      signature: 'readonly name: string'
    - name: title
      kind: property
      signature: 'readonly title?: string'
      description: 'The display name a client shows (`title`, else `annotations.title`).'
    - name: endpoint
      kind: property
      signature: 'readonly endpoint?: string'
    - name: auth
      kind: property
      signature: >-
        readonly auth?:
        [[reference/api/ui/reference/ReferenceAuth|ReferenceAuth]]
    - name: inputSchema
      kind: property
      signature: >-
        readonly inputSchema:
        [[reference/api/ui/reference/SchemaNode|SchemaNode]]
      description: The tool's arguments. A tool without one takes no arguments.
    - name: outputSchema
      kind: property
      signature: >-
        readonly outputSchema?:
        [[reference/api/ui/reference/SchemaNode|SchemaNode]]
      description: 'The schema `structuredContent` follows, when the tool declares one.'
    - name: annotations
      kind: property
      signature: >-
        readonly annotations:
        [[reference/api/theme-mcp-docs/McpToolAnnotations|McpToolAnnotations]]
    - name: examples
      kind: property
      signature: >-
        readonly examples: readonly
        [[reference/api/theme-mcp-docs/McpToolExample|McpToolExample]][]
  source: >-
    https://github.com/mia-cx/svartz/blob/711f3906a713c8b9a5a572d0f34c85e90c3bc3d1/themes/mcp-docs/src/lib/mcp.ts#L71
---

# McpTool

```yaml
operation:
  protocol: mcp
  kind: tool                 # resources and prompts are reserved for later
  name: call_operation
  endpoint: /mcp/admin       # the server's HTTP endpoint, not the tool's
  auth: { scheme: bearer, description: "A person's `lla_` token" }
  inputSchema: { type: object, required: [operation_id], properties: { operation_id: { type: string } } }
  outputSchema: { type: object, properties: { status: { type: string } } }
  annotations: { destructiveHint: true }
  examples:
    - title: Read the channels
      arguments: { operation_id: list_guild_channels }
      result: { structuredContent: { status: done } }
    - title: Unknown tool
      error: { code: -32602, message: "Unknown tool" }
```
