What a route declares to become a tool.
The short form names the tool and nothing else, which is enough when the route already documents itself through openapi, @Validate or @Returns:
openapi
@Validate
@Returns
@Post('/notes', { mcp: 'create-note' }) Copy
@Post('/notes', { mcp: 'create-note' })
The long form states what the short form would have to derive:
@Post('/notes', { mcp: { name: 'create-note', description: 'Create a note for the signed-in user.' } }) Copy
@Post('/notes', { mcp: { name: 'create-note', description: 'Create a note for the signed-in user.' } })
What a route declares to become a tool.
The short form names the tool and nothing else, which is enough when the route already documents itself through
openapi,@Validateor@Returns:The long form states what the short form would have to derive: