So far you've seen tool schemas from the consumer side. what the model receives. Now you're going to write one.
Forge needs a simple tool: given a crewmate's alias, return their info. Your job: write the JSON Schema that defines that tool.
A valid tool schema has three non-negotiable fields:
name. unique identifier for the tool. Snake case, descriptive.description. text the model READS to decide when to invoke it. This is the most important part. If the description is vague, the model won't use the tool. or will use it when it shouldn't.parameters. JSON Schema describing the inputs. Each parameter carries a type, a description, and is marked as required if the tool doesn't work without it.We give you the skeleton on the right. Your job:
description (min 20 chars, actionable).alias parameter as string with its own description.alias as required.The tool description is the equivalent of the role in a prompt: it defines when the tool enters the picture. If the description doesn't mention the use case, the model won't know to pick it.
5 deterministic criteria (valid JSON, correct name, description with min length, alias parameter defined, alias in required) + 1 llm-judge on the description's clarity.