Skip to main content
Glama
selvinchen97-lab

selvin-search-mcp

plan_sub_query

Batch submit all sub-queries for a decomposed search plan in one call. Validates unique IDs and dependency graph to ensure correctness.

Instructions

Phase 3: Submit ALL sub-queries in ONE call (batch).

items_json: JSON array, each element shape: {"id":"sq1","goal":"...","expected_output":"...","boundary":"...", "depends_on":["sq0"],"tool_hint":"web_search"}

Validation enforced by the engine:

  • ids must be unique

  • depends_on must reference declared ids

  • no cycles in depends_on graph

  • duplicate id → error returned, batch rejected

Set is_revision=true to replace any previously submitted decomposition.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
thoughtYesReasoning for the full decomposition
confidenceNoConfidence 0.0-1.0
items_jsonYesJSON array of sub-query objects (see description for shape)
session_idYesSession ID from plan_intent
is_revisionNoTrue to replace prior decomposition
Behavior3/5

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

No annotations exist, so description carries full burden. It discloses batch submission, validation rules (unique ids, no cycles), error on duplicate, and is_revision effect. However, missing details on result behavior (e.g., return value, idempotency).

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?

Description is well-structured with bullet points and a JSON example. Front-loaded with purpose. Could be slightly more concise by omitting standard validation details, but overall efficient.

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

Completeness3/5

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

No output schema exists; description does not explain return values or error responses. Prerequisites are implied by required session_id from plan_intent. Missing post-submission context (e.g., success indication, session state changes).

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

Parameters4/5

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

Schema already covers 100% of parameters. Description adds significant value for items_json by specifying exact JSON shape, validation constraints, and the purpose of is_revision. Other parameters (session_id, thought, confidence) are not enhanced beyond schema, but the critical parameter is well-explained.

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

Purpose5/5

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

Clearly states the tool submits ALL sub-queries in one call (batch). Verb 'submit' and resource 'ALL sub-queries in ONE call' are specific. Mention of 'Phase 3' distinguishes it from earlier planning phases.

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?

Only implies phase context ('Phase 3'), but no explicit when-to-use or when-not-to-use. No comparison to sibling tools like plan_intent or plan_execution. No guidance on choosing is_revision vs not.

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/selvinchen97-lab/GLM-search-mcp'

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