Skip to main content
Glama
ianderso
by ianderso

parse_dna_segments

Read-only

Parse pasted shared-segment data into structured segments with total and largest centiMorgans, and flag unreadable input as a parse failure rather than zero DNA.

Instructions

Parse pasted shared-segment data into structured segments and totals.

Use this to check what a match file actually contains before recording it. Returns each segment plus the total and largest-segment centiMorgans.

If nothing parses, parsed is false and the reason is given. That distinction matters: the server answers unreadable input with zero segments and a success status, which would otherwise read as "this person shares no DNA" rather than "I could not read that".

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
dataYesRaw shared-segment data, as a testing company exports it: rows of chromosome, start, stop, centiMorgans, SNPs, separated by commas or tabs, with an optional side of M, P or U. A header row is tolerated.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.5/5.0
Behavior5/5

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

Annotations only declare readOnlyHint and openWorldHint, so the description carries the real behavioral burden and delivers: it discloses the return shape ('each segment plus the total and largest-segment centiMorgans') and, critically, the failure contract ('parsed is false and the reason is given'). It also explains the semantic trap the server's silent zero-segment/success response would otherwise create, which is exactly the kind of insight annotations cannot convey.

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?

Three tight sentences, front-loaded with the action, then the result, then the failure semantics. Every sentence adds distinct value and none is redundant padding.

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

Completeness5/5

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

With no output schema, the description still conveys what is returned (segments, total cM, largest segment) and how failures are signaled (parsed=false plus reason). Combined with a fully documented input schema and read-only annotations, an agent has everything needed to call and interpret this tool.

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 schema description already spells out the row format (chromosome, start, stop, centiMorgans, SNPs, comma/tab separation, M/P/U side, tolerated header). The prose adds no format detail beyond that, so the baseline of 3 for a fully documented single parameter applies.

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?

States a specific verb and resource ('parse pasted shared-segment data into structured segments and totals') and clarifies the intent of checking a match file's contents. It is clearly distinguishable from the neighboring DNA tools like add_dna_match and get_dna_matches, which respectively write and retrieve matches rather than parse raw pasted text.

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?

Explicitly says to use it 'to check what a match file actually contains before recording it,' which names both the context and the downstream action (recording via add_dna_match). It stops short of naming the alternative tool or stating when not to use this, but the situational guidance is clear.

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