Skip to main content
Glama

Detect format

detect_format

Detect which supported agent-file format the content is (verdigraph_genome, claude_project_export, openai_assistant, prompt_list) before building.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "content": "<content>"
    },
    "name": "detect_format"
  }
}

Input Schema

NameRequiredDescriptionDefault
contentYesThe agent file, as a string.

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / content / description
      Added value: +"The agent file, as a string."
  2. First observed

TDQS

A3.5/5.0
Behavior3/5

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

The description contributes real context beyond the annotations by listing the exact set of detectable formats and framing the call as a pre-build gate. It does not say how ambiguous or unrecognized content is handled - a meaningful gap for a classifier - and it sits uneasily with readOnlyHint=false for what reads as a pure inspection step, though that mismatch originates in the annotation rather than the prose.

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?

One front-loaded sentence with an inline enumeration of formats; nothing is padded or repeated. The parenthetical list is slightly awkward to scan but is the most information-dense part of the definition.

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

Completeness4/5

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

For a one-parameter detector with an output schema covering the return value, this is close to sufficient - formats are enumerated and the call's role in the workflow is stated. The missing piece is failure or ambiguity behavior when content matches no supported format.

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 coverage is 100% and the single content parameter is already documented in the schema, so the baseline of 3 applies. The description adds no syntax, encoding, or size expectations for the content string beyond what the schema states.

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 names a specific verb ("Detect") and resource ("which supported agent-file format the content is"), and enumerates the four recognized formats in parentheses. Contextual positioning ("before building") loosely ties it to the build step, but no sibling tool is named explicitly, so differentiation is inferred rather than stated.

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

Usage Guidelines3/5

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

"before building" implies the intended sequencing: call this on raw content prior to build_brain. However, there is no explicit when-not guidance, no statement of what to do if no format matches, and no alternative path offered if detection fails.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.