Skip to main content
Glama

get_candidate

Read-onlyIdempotent

Inspect a takeoff candidate by ID to review linear diagnostics, compare selected candidates, and check opening evidence before proposing areas or repairs.

Instructions

Inspect a candidate by ID. Linear candidates return linear_diagnostics: length, unique/repeated length, crossings, and clipping to an explicit area scope. parallel_distance_ft explicitly searches near-parallel runs (0 disables). opening_evidence inspects nearby source swings and wall strokes/fills within 5 ft; crosses_run distinguishes actual contact. measurement_basis declares intended wall_face/centerline/separate_runs but stays unverified. Wall/opening checks allow 16 selected runs and never merge faces or deduct openings. near_distance_ft explicitly bounds endpoint gaps (0 disables); these are not verified construction connections. Set diagnostics:true before proposing an area: flags slivers and possible overlap with simple painted wall strips. Inspect those locations; strips are heuristic evidence, not a complete wall model. compare_candidate_ids batches quantity/wall-strip summaries and overlaps for the selected candidates, plus target-only/alternative-only areas and locations for the first eight alternatives; compare tracers before choosing. scope_candidate_id bounds uncovered area to an explicit boundary. Use per-region locations for separate changes; an overall bbox can include unchanged space. Omitted finding/region counts remain explicit. Returns IDs, locations and SF, never full vertices. Findings do not authorize repairs or establish completeness. Stale IDs require analysis again.

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": {
      "project_id": "<project_id>",
      "candidate_id": "<candidate_id>"
    },
    "name": "get_candidate"
  }
}

Input Schema

NameRequiredDescriptionDefault
project_idYesThe project to work on (list_projects names them).
diagnosticsNo
candidate_idYes
near_distance_ftNoLinear candidates only: explicitly chosen endpoint-gap search distance in feet; zero disables gap search.
opening_evidenceNoInspect source swing geometry and neighboring wall strokes/fills for bounded possible openings; no automatic deductions.
measurement_basisNoCaller-declared intended line basis; recorded in diagnostics as unverified.
scope_candidate_idNo
parallel_distance_ftNoExplicit search for near-parallel runs; 0 disables. Reports possible wall faces, never automatic duplicate removal.
compare_candidate_idsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv1.0.23

TDQS

A4.1/5.0
Behavior5/5

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

Annotations already cover read-only, idempotent, non-destructive, closed-world, so the bar is lower — yet the description adds substantial context: return shape ('IDs, locations and SF, never full vertices'), staleness behavior, the fact that findings 'do not authorize repairs or establish completeness,' and repeated heuristic caveats about wall strips and unverified connections. No claim conflicts with the annotations.

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

Conciseness3/5

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

The purpose is front-loaded, but the body is a dense semicolon-chained wall of caveats with no grouping by parameter or workflow step. Most sentences carry real information, yet the near-uniform rhythm makes it hard to scan which clause applies to which parameter.

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 9-parameter, no-output-schema, domain-specific inspection tool, the description covers return contents, staleness, heuristic limits, and batching semantics — enough for an agent to call it correctly. Minor gaps remain around how regions/locations are keyed in the response and what happens when candidate_id refers to a non-linear candidate.

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

Parameters4/5

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

With 56% schema coverage across 9 parameters, the description compensates well: it explains what compare_candidate_ids actually returns (quantity/wall-strip summaries, target-only and alternative-only areas, first eight alternatives), what scope_candidate_id bounds, and how opening_evidence/near_distance_ft behave. Some clauses merely restate schema text ('0 disables'), but the output-side meaning of the complex parameters is genuine added value.

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?

Opens with a concrete verb+resource: 'Inspect a candidate by ID,' and immediately scopes the resource as a geometric takeoff candidate with linear diagnostics, openings, and area scopes. It does not, however, differentiate itself from siblings such as get_candidate_image or get_wall_model, so an agent must infer that this is the textual/metric view rather than the image or model view.

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?

Gives actionable conditional guidance: 'Set diagnostics:true before proposing an area,' 'compare tracers before choosing,' 'Use per-region locations for separate changes,' and 'Stale IDs require analysis again.' What it lacks is explicit routing to sibling tools or a when-not-to-use statement, which keeps it below a 5.

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