Skip to main content
Glama
multiplatform-code-generator

multiplatform-code-generator

by psply

parse_cpp_interface

Parses C++ interface code to extract function signatures and information, enabling generation of Android JNI, iOS Objective-C, and HarmonyOS NAPI wrapper code.

Instructions

Parse C++ interface and extract function information

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": {
      "cpp_interface": "<cpp_interface>"
    },
    "name": "parse_cpp_interface"
  }
}

Input Schema

NameRequiredDescriptionDefault
cpp_interfaceYesC++ interface function code to parse

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

C2.6/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full behavioral burden and does not discharge it. It does not say whether parsing is read-only, what happens on malformed C++ input, whether it supports templates/namespaces, or what shape the extracted information takes. With no output schema, the agent has no idea what comes back.

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 short sentence with no filler, and the verb+resource are front-loaded. It is concise but borders on under-specified rather than efficient, since brevity here comes at the cost of missing behavioral detail.

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 parsing tool with no annotations and no output schema, the description should explain what "function information" includes (names, signatures, parameters, return types) and how errors surface. None of that is present, leaving the agent unable to predict the result of invoking it.

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% with a single parameter whose description ("C++ interface function code to parse") is sufficient. The tool description adds nothing beyond it, but the schema already does the work, so the baseline 3 applies.

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

Purpose3/5

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

The description states a specific verb ("Parse") and resource ("C++ interface") plus a vague output goal ("extract function information"). It hints at being the code-analysis member of a family that otherwise generates multiplatform code or lists platforms, but "function information" is left undefined so the agent cannot tell precisely what it produces.

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?

There is no guidance on when to use this tool, no prerequisites (e.g. must the input be a full declaration or just a signature?), and no mention of the sibling tools as alternatives. The agent must infer the use case entirely from the name and one-line description.

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