Skip to main content
Glama

type.parse_c

Parses a C declaration and returns the resulting type without committing it, so you can inspect or validate type definitions before applying changes.

Instructions

Parse a C declaration and return the resulting type without necessarily committing it.

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": {
      "session_id": "<session_id>",
      "declaration": "<declaration>"
    },
    "name": "type.parse_c"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameNo
categoryNo
session_idYes
declarationYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.1/5.0
Behavior3/5

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

No annotations are provided, so the description carries the full behavioral burden, and it does disclose one important trait: the parse may not persist. That disclosure is undercut by the hedge 'not necessarily', which leaves the agent unable to tell whether a call can mutate state; permissions, error behavior, and whether a type is created in an archive are all unstated.

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?

A single front-loaded sentence with no filler: the operation and its caveat arrive immediately. The only cost is that the brevity leans on an ambiguous qualifier rather than precise language.

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?

For a four-parameter tool with no annotations, no output schema, and zero schema descriptions, the definition is too thin. It says nothing about the shape of the returned type, what session_id scopes, or what happens to the four undocumented parameters, leaving the agent guessing on required inputs.

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

Parameters2/5

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

Schema description coverage is 0% across four parameters, and the description only gestures at 'declaration'. The required session_id, plus name and category, get no explanation of what they do or whether they interact with persistence; the description therefore does not compensate for the coverage gap.

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 ('Parse') and resource ('a C declaration') and states the return ('the resulting type'), which separates it from a pure definition tool via 'without necessarily committing it'. It stops short of explicitly naming the sibling it contrasts with (e.g. type.define_c), but the operation is still identifiable.

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?

The phrase 'without necessarily committing it' implies the tool is for speculative/preview parsing rather than persistent definition, which implies a contrast with a committing sibling. However, no explicit when-to-use condition, prerequisites, or named alternative is given, so the agent must infer the routing decision.

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

Deploy Server

Other Tools