Skip to main content

MCP Tool Annotations CLI

Command-line interface for viewing MCP tool annotations and behavioral hints.

Commands Overview

Tools Info Command

Basic Usage

Output:

Options

JSON Output

Output:

Tools Schema Command

Basic Usage

Output:

Understanding Annotations

readOnlyHint

Read-only tools (readOnlyHint: true):
  • Only retrieve/display data
  • Don’t modify any state
  • Safe to call without side effects

destructiveHint

Tools with destructiveHint: true:
  • May delete or modify data irreversibly
  • Require user confirmation in some clients
  • Examples: file.delete, database.drop

idempotentHint

Tools with idempotentHint: true:
  • Safe to retry on failure
  • Multiple calls produce same result
  • Examples: config.set, cache.invalidate

openWorldHint

Tools with openWorldHint: false:
  • Only interact with local/internal systems
  • Don’t make network requests
  • Examples: memory.show, session.get

Examples

Check if Tool is Safe

List All Tool Annotations

Filter by Annotation Type

Export Tool Documentation

Error Handling

Tool Not Found

Invalid Tool Name

Exit Codes

See Also