How DevToolbox MCP tools work
mainDevToolbox exposes its scanners as MCP tools. Each scanner is mapped to a tool with the prefix devtoolbox-<name> (e.g., devtoolbox-routes, devtoolbox-sql-trace).
Tool Types
Tools are categorized into two types based on their side effects:
- Active Scanners: These tools execute actual code or queries. They are not marked as read-only or idempotent.
- Examples:
sql-trace,sql-analysis,performance. - Warning: Never run
devtoolbox-sql-tracein a production environment.
- Examples:
- Read-Only Scanners: These are idempotent and safe for introspection. They are marked with
#[IsReadOnly]and#[IsIdempotent].
Tool Discovery and Execution
- Naming: Tools use the scanner name as a slug (e.g.,
database-schema) and a human-readable title. - Arguments: Each tool has a typed schema defined by
getOptionSchema(). Arguments are validated before execution. - Responses: Results are returned as structured JSON. If a response exceeds
devtoolbox.mcp.max_response_bytes(default262144), theResponseTruncatorwill truncate large lists and add a_truncatedmetadata key to help you refine your query.