THE DEV BENCH
🧾 JSONmedium

1. Define a tool

Define an MCP tool named "get_weather": • name: "get_weather" • description: a short hint for the model • inputSchema: a JSON Schema object with a required string property "location"

How to approach this

A tool is a callable action. Two fields are REQUIRED: `name` (the programmatic id) and `inputSchema` — a JSON Schema that MUST be `type: "object"`, describing the arguments the model must supply. The optional `description` is a hint the LLM reads to decide when to call it. Mark `location` required by listing it in the schema's `required` array. This is exactly what the client learns from `tools/list`.

config.json