crafty_list_schemas
List all available JSON schema names in Crafty Controller without requiring authentication.
Instructions
List all available JSON schema names in Crafty Controller. Does not require authentication.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "crafty_list_schemas"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/tools/auth.ts:43-56 (handler)The handler for the crafty_list_schemas tool, which fetches JSON schema information from the Crafty Controller.
server.tool( "crafty_list_schemas", "List all available JSON schema names in Crafty Controller. Does not require authentication.", {}, async () => { try { const data = await client.get("/jsonschema"); return { content: [{ type: "text", text: JSON.stringify(data, null, 2) }] }; } catch (error) { const msg = error instanceof Error ? error.message : String(error); return { content: [{ type: "text", text: `Error: ${msg}` }], isError: true }; } } );