Skip to main content
Glama

Parse clinical text

infermedica_parse
Read-only

Extract clinical mentions (symptoms / risk factors) and their states from free-text describing complaints, mapping them to Infermedica evidence ids (NLP). Non-mutating computation. Engine API: POST /parse.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
ageYesPatient age, e.g. { value: 30 } or { value: 6, unit: 'month' }.
sexYesPatient biological sex.
textYesFree-text describing the patient's complaints (required).
contextNoOrdered ids of already-captured present symptoms, used as parsing context.
dev_modeNoIf true, mark the request as test traffic → sends the `Dev-Mode: true` header.
model_idNoOptional medical model id → sent as the `Model-Id` request header.
concept_typesNoRestrict captured mentions to these concept types.
include_tokensNoIf true, include tokenization details in the output.
correct_spellingNoIf true, correct spelling of the input before analysis.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, and the description's 'Non-mutating computation' largely restates that. What it does add is the NLP nature and that mentions carry 'states', but it omits any disclosure of return shape, latency, or auth needs. With annotations covering the safety profile, this is adequate but not rich.

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?

Three tight sentences with the core action front-loaded. 'Engine API: POST /parse' is mildly meta/redundant but does confirm the endpoint, and nothing pads the text.

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 non-mutating parse tool with 100% schema coverage and no output schema, the description covers purpose and output nature (mentions, states, evidence ids). It would be stronger with a note on the relationship between `context` and results, but nothing essential to correct invocation is missing.

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 nine parameters are documented in the schema itself. The description adds nothing parameter-specific (e.g., how context ids interact with parsing), so the baseline 3 applies.

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?

Specific verb+resource: 'Extract clinical mentions (symptoms / risk factors) and their states from free-text' and states the output form (mapped to Infermedica evidence ids via NLP). This is clearly distinguishable from listing/getter siblings, though it never explicitly contrasts with infermedica_search_concepts, which also maps text to ids.

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?

Usage is implied by 'free-text describing complaints' and 'Engine API: POST /parse', giving context of the parsing step, but there is no when-to-use/when-not guidance and no routing against alternatives like search_concepts or suggest. The agent must infer when parsing is appropriate.

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.