MCP Tool Annotations CLI
Command-line interface for viewing MCP tool annotations and behavioral hints.Commands Overview
| Command | Description |
|---|---|
praisonai mcp tools info <name> | Get detailed tool information including annotations |
praisonai mcp tools schema <name> | Get full JSON schema with annotations |
Tools Info Command
Basic Usage
Options
| Option | Description |
|---|---|
--json | Output in JSON format |
JSON Output
Tools Schema Command
Basic Usage
Understanding Annotations
readOnlyHint
readOnlyHint: true):
- Only retrieve/display data
- Don’t modify any state
- Safe to call without side effects
destructiveHint
Tools withdestructiveHint: true:
- May delete or modify data irreversibly
- Require user confirmation in some clients
- Examples: file.delete, database.drop
idempotentHint
Tools withidempotentHint: true:
- Safe to retry on failure
- Multiple calls produce same result
- Examples: config.set, cache.invalidate
openWorldHint
Tools withopenWorldHint: 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
| Code | Meaning |
|---|---|
| 0 | Success |
| 1 | Error (tool not found, invalid input) |
See Also
- MCP Tool Annotations Module - Code-based annotations usage
- MCP Tool Search CLI - Search tools by annotations
- MCP CLI Overview - All MCP CLI commands

