Skip to main content
Glama

Explicar relação (MedGraphRAG, raciocínio multi-hop)

explain_relation
Read-only

Raciocínio fundamentado sobre o grafo: dada uma pergunta (ex.: "por que o gene X se associa à doença Y?", "como a droga Z se relaciona a esta doença?"), retorna caminhos de evidência multi-hop (doença↔gene↔via↔droga↔fenótipo) com proveniência citável. Se não houver caminho no grafo, recusa — nunca inventa.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
queryYes
hpo_idsNo
max_hopsNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
pathsYes
queryYes
summaryYes
hasEvidenceYes

TDQS

A4.3/5.0
Behavior5/5

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

Annotations already indicate readOnlyHint and closed-world semantics, but the description adds crucial behavioral details: it refuses when no graph path exists and never fabricates evidence. This goes beyond the structured annotations and is highly valuable for an agent.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is compact and front-loaded: first sentence states the function, gives examples, and describes the output; second sentence states the refusal behavior. No filler or redundant information.

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?

With read-only and closed-world annotations plus an output schema, the description covers the core behavior, refusal mode, and typical use cases. The only notable gap is the lack of explanation for the optional parameters, but the tool is still quite complete for selection and basic invocation.

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%, so the description must compensate. It explains the query parameter via natural-language examples, but says nothing about hpo_ids or max_hops, leaving two of three parameters underspecified.

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?

The description clearly states the tool performs graph-grounded reasoning and returns multi-hop evidence paths with citable provenance. Concrete examples ('why does gene X associate with disease Y?') make the scope unambiguous and distinguish it from sibling tools like get_evidence or get_hypotheses.

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

Usage Guidelines4/5

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

The description gives clear usage context: use when a natural-language question requires multi-hop explanation over the graph, with representative question formats. It does not explicitly name alternatives or exclusions, so it stops short of a 5.

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.

TDQS

B3/5.0
Disambiguation4/5

Most tools have clear, distinct purposes, but there is a cluster of 'find' tools (find_similar_diseases, find_phenotypically_similar, find_diseases_by_phenotypes) that could be confused; descriptions differentiate them (semantic vs HPO similarity vs exact match), and the paper search tools also differ by input type. Overall, ambiguous pairs are explicitly disambiguated, leaving only a few close calls.

Naming Consistency5/5

All tools consistently follow a snake_case verb_noun pattern, using a limited set of verbs (analyze, explain, find, get, search) that map predictably to tool functionality. No mixed conventions or vague names are present, making the naming highly systematic.

Tool Count4/5

At 20 tools, the server is slightly above the ideal range of 3-15, but each tool serves a distinct function within the rare disease knowledge platform. The breadth of features—search, similarity, detail, evidence, literature, hypotheses, graph exploration—justifies the count without feeling bloated or redundant.

Completeness5/5

The tool surface comprehensively covers the rare disease domain: search, differential diagnosis, disease detail, evidence, SUS/trials, reference centers, literature, hypotheses, and graph analytics. Write operations are not expected for a read-only knowledge base, and the inclusion of research log and recent updates closes all apparent gaps.