Skip to main content
Tools let a prompt ask for structured work outside the model: call an API, query a service, use retrieval, run an application function, or connect through MCP. Use tools when the model should not guess. A good tool definition gives the model a clear name, a narrow description, and a parameter schema it can fill reliably. Tool configuration showing function parameters and schema

What A Tool Defines

PartWhy it matters
NameThe action the model can choose, such as get_weather or search_docs.
DescriptionThe decision boundary for when the model should use the tool.
ParametersThe structured inputs the model must provide.
ExecutionOptional HTTP request configuration for automatic Playground tool calls.
Response shapeThe data the model receives before it continues the conversation.
The schema is part of the prompt contract. If the tool is vague, too broad, or missing required parameters, the model will usually make worse decisions.

How To Use Tools

1

Define or attach the tool

Add a tool to the prompt, or reuse an existing tool from the project.
2

Enable tool choice

Choose whether the model can call tools automatically, must call one, or should avoid tools for a run.
3

Test in Playground

Run the prompt and inspect the tool call arguments, tool response, and final model answer.
4

Debug from logs

Use Monitor to inspect tool-call spans, latency, failures, and bad arguments from production traffic.

Tool Options

OptionUse it when
Manual tool responsesYou want to test how the model reacts before connecting a backend.
Auto tool callsThe tool has an HTTP backend Adaline can call during Playground runs.
API variablesYou only need to fetch data into a prompt variable, not expose a callable tool.
MCP serversYou want to connect to a server that exposes standardized tools.
Tools and API variables are related but different. API variables fetch context before the prompt runs. Tools let the model decide during the run that it needs an external action or piece of data.

What To Check

When a tool-enabled prompt behaves poorly, start with the evidence:
  • Did the model choose the right tool?
  • Did it send the right arguments?
  • Did the backend return the expected response?
  • Did the prompt use the tool response correctly?
  • Did tool latency or errors affect the final answer?
If the problem is the decision to call the tool, improve the prompt or tool description. If the problem is arguments or schema, tighten the tool definition. If the tool response is wrong or slow, debug the backend.

Next Steps

Use tools in prompt

Define tool schemas and attach tools to prompts.

Tool calls in Playground

Test manual and automatic tool-call flows.

Use MCP servers

Connect prompts to remote MCP tools.

Analyze log spans

Inspect tool-call spans, arguments, responses, and timing.