> ## Documentation Index
> Fetch the complete documentation index at: https://www.getmaxim.ai/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Prompt Tool Calls

> Ensuring your prompt selects the accurate tool call (function) is crucial for building reliable and efficient AI workflows. Maxim’s playground allows you to attach your tools (API, code or schema) and measure tool call accuracy for agentic systems.

export const MaximPlayer = ({url}) => {
  return <iframe className="border-background-highlight-secondary h-full w-full rounded-md border-2 aspect-video" src={url} allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowFullScreen></iframe>;
};

<MaximPlayer url="https://www.youtube.com/embed/LGItsF0y5qk" />

Tool call usage is a core part of any agentic AI workflow. Maxim's playground allows you to effectively test if the right tools are being chosen by the LLM and if they are getting successfully executed.

In Maxim, you can create [prompt tools](/library/prompt-tools#create-a-code-tool) within the `library` section of your workspace. These could be executable or just the schema and then attached to your prompt for testing.

## Attach and Run Your Tools in Playground

<Steps>
  <Step title="Create a new tool">
    Create a new tool in the library. Use an API or code for executable tools and schema if you only want to test tool choice.

    <img src="https://mintcdn.com/maximai/YdQNCf1tftKyYOR4/images/docs/evaluate/how-to/evaluate-prompts/run-tool-call/create-tool.png?fit=max&auto=format&n=YdQNCf1tftKyYOR4&q=85&s=a3438575166a56657f1601f6c7b048cc" alt="Create Prompt tool" width="3024" height="1646" data-path="images/docs/evaluate/how-to/evaluate-prompts/run-tool-call/create-tool.png" />
  </Step>

  <Step title="Attach tools to your prompt">
    Select and attach tools to the prompt within the configuration section.

    <img src="https://mintcdn.com/maximai/YdQNCf1tftKyYOR4/images/docs/evaluate/how-to/evaluate-prompts/run-tool-call/attach-tool.png?fit=max&auto=format&n=YdQNCf1tftKyYOR4&q=85&s=35e2c5c85d7e905fd3027b58393ef40f" alt="Attach Prompt Tool" width="896" height="1124" data-path="images/docs/evaluate/how-to/evaluate-prompts/run-tool-call/attach-tool.png" />
  </Step>

  <Step title="Send prompt with tool instructions">
    Send your prompt referencing the tool usage instructions.

    <img src="https://mintcdn.com/maximai/YdQNCf1tftKyYOR4/images/docs/evaluate/how-to/evaluate-prompts/run-tool-call/prompt-tool-instruction.png?fit=max&auto=format&n=YdQNCf1tftKyYOR4&q=85&s=019c8d9fed220b1c94895907040912cf" alt="Prompt with tool instructions" width="1302" height="1280" data-path="images/docs/evaluate/how-to/evaluate-prompts/run-tool-call/prompt-tool-instruction.png" />
  </Step>

  <Step title="Review assistant's tool selection">
    Check the assistant response with tool choice and arguments.

    <img src="https://mintcdn.com/maximai/YdQNCf1tftKyYOR4/images/docs/evaluate/how-to/evaluate-prompts/run-tool-call/tool-details.png?fit=max&auto=format&n=YdQNCf1tftKyYOR4&q=85&s=3007c1e00de2130e6f0c06f5d66b610a" alt="Assistant message of tool choice" width="1358" height="700" data-path="images/docs/evaluate/how-to/evaluate-prompts/run-tool-call/tool-details.png" />
  </Step>

  <Step title="Examine tool execution results">
    For executable tools, check the tool response message that is shown post execution.

    <img src="https://mintcdn.com/maximai/YdQNCf1tftKyYOR4/images/docs/evaluate/how-to/evaluate-prompts/run-tool-call/tool-response.png?fit=max&auto=format&n=YdQNCf1tftKyYOR4&q=85&s=b6d435211efee0eec22920c998fc95b4" alt="Tool message" width="1346" height="932" data-path="images/docs/evaluate/how-to/evaluate-prompts/run-tool-call/tool-response.png" />
  </Step>

  <Step title="Manually test different scenarios">
    Edit tool type messages manually to test for different responses.

    <img src="https://mintcdn.com/maximai/YdQNCf1tftKyYOR4/images/docs/evaluate/how-to/evaluate-prompts/run-tool-call/manual-tool-message.png?fit=max&auto=format&n=YdQNCf1tftKyYOR4&q=85&s=fea4cb2f2df7d56051275ed7e452a9cc" alt="Tool message edit" width="1386" height="564" data-path="images/docs/evaluate/how-to/evaluate-prompts/run-tool-call/manual-tool-message.png" />
  </Step>
</Steps>

By experimenting in the playground, you can now make sure your prompt is calling the right tools in specific scenarios and that the execution of the tool leads to the right responses.

## Next steps

[Measure Tool Call Accuracy](/offline-evals/via-ui/prompts/tool-calls) - check how to measure tool call accuracy.
