Skip to main content
Glama

plan_tool_mapping

Map a sub-query to a specific tool (web_search, web_fetch, or web_map) with reasoning and confidence. Use once per mapping; set revision to replace all mappings.

Instructions

Phase 5: Map a sub-query to a tool. Call once per mapping; data accumulates.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
toolYesweb_search | web_fetch | web_map
reasonYesWhy this tool for this sub-query
thoughtYesReasoning for this mapping
confidenceNoConfidence 0.0-1.0
session_idYesSession ID from plan_intent
is_revisionNoTrue to replace all mappings
params_jsonNoOptional JSON string for tool-specific params
sub_query_idYesSub-query ID to map
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations, the description carries the full burden of behavioral disclosure. It only notes 'data accumulates,' which implies state-changing behavior, but omits details about revision (is_revision), side effects, what happens on repeated calls, or any persistence implications. This is minimal disclosure for a stateful tool.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is two short sentences with no waste. It is front-loaded with the core action and adds a behavioral note. The 'Phase 5' prefix is a bit cryptic without broader context, but overall it is concise and efficient.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given 8 parameters, 5 required, no output schema, and no annotations, the description is insufficiently complete. It explains the basic action but fails to describe how to use the tool correctly, what the 'data accumulates' means for parameters like is_revision, what happens on failure, or any expected return value. An agent would struggle to call this correctly without additional context.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so all 8 parameters are already documented in the schema. The description adds nothing beyond the obvious mapping purpose, so the baseline of 3 is appropriate; the schema handles parameter semantics adequately.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description states a clear verb and resource: 'Map a sub-query to a tool.' It also adds a distinguishing behavior ('data accumulates') that helps separate it from siblings like plan_sub_query or plan_execution, though it does not explicitly name alternatives.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description provides no explicit guidance on when to use this tool versus alternatives. It mentions 'Phase 5' and 'Call once per mapping,' which hints at a phased workflow, but does not state conditions for choosing this tool over others or any exclusions.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/zhehaosun717/sunami-grok-search'

If you have feedback or need assistance with the MCP directory API, please join our Discord server