Skip to main content
Glama

Trustbase Lab · Trusted Data Infrastructure for the AI Era

query_safety_boundaries

query_safety_boundaries
Read-onlyIdempotent

Purpose: the citable safety-boundary layer for strength training - look up an exercise x condition pair and get a graded verdict (avoid / precaution / safe-with-modification / recommended / ineffective-for-target) together with the verbatim source quote, the section locator and a content hash for each citation. This is the wedge of the fitness domain: it answers 'is this movement contraindicated for this condition' rather than 'what should I train'. Guidelines: pass exercise and/or condition as an id (fit-ex-, fit-cond-) or as a keyword in Chinese or English; optionally filter by verdict; every row carries at least one retrievable source with a quote you can check character-for-character. Limits: no individualised advice (never 'what should I do'), no diagnosis, no dosing; this is a curated source-backed subset, so the absence of a pair is NOT evidence that the pair is safe; paid standards and copyrighted books are represented by metadata only and their body text is never reproduced. Ex: query_safety_boundaries(exercise='深蹲'), query_safety_boundaries(condition='osteoporosis'), query_safety_boundaries(verdict='avoid', response_format='json'), query_safety_boundaries(exercise='fit-ex-bench-press', condition='fit-cond-uncontrolled-hypertension').

Input Schema

NameRequiredDescriptionDefault
limitNo每页条数(默认 20,最大 100)
offsetNo分页偏移(默认 0;把 next_cursor 原样回传即可翻页)
verdictNo按裁定等级过滤(可选):avoid=禁忌 / precaution=谨慎 / safe_with_modification=可做需改造 / recommended=推荐 / ineffective_for_target=对该目标无效
exerciseNo动作:id(如 fit-ex-back-squat)或关键词(如 '深蹲' / 'deadlift')
languageNo输出语言zh
conditionNo条件:id(如 fit-cond-osteoporosis)或关键词(如 '妊娠' / 'osteoporosis')
response_formatNoOutput format: 'markdown' (default, human-readable) or 'json' (machine-readable).markdown

Output Schema

NameRequiredDescriptionDefault
textYesHuman-readable result (markdown, or a JSON string when response_format=json).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already declare readOnly/idempotent/non-destructive, but the description adds substantial context beyond them: every row carries at least one retrievable source with a verbatim quote, section locator and content hash, and paid standards/copyrighted books are represented by metadata only with body text never reproduced. The 'absence is not safety' warning is a behavioral trait no annotation conveys.

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?

Front-loads purpose before guidelines, limits and examples, and every section adds genuine information. It is on the verbose side and the example list is somewhat repetitive, but no sentence is wasted.

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 an output schema present the description needn't explain return values, yet it still clarifies the verdict vocabulary and citation payload. Combined with the scope limits and safety caveat, an agent has everything needed to call this correctly and interpret the results responsibly.

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 the schema already documents all seven parameters including id formats, enums and defaults. The description largely restates this (id prefixes fit-ex-*/fit-cond-*, Chinese/English keywords, verdict filtering) rather than adding new syntax or semantic depth, so the baseline 3 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+resource: look up an exercise x condition pair and return a graded verdict plus verbatim source quote, locator and content hash. It explicitly positions itself against the rest of the fitness domain ('is this movement contraindicated' rather than 'what should I train'), distinguishing it from siblings like query_activity_guidelines and get_dietary_guidelines.

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

Usage Guidelines5/5

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

The Guidelines and Limits sections state how to query (id like fit-ex-* or keyword in Chinese/English, optional verdict filter), what the tool will not do (no individualised advice, no diagnosis, no dosing), and the critical caveat that absence of a pair is not evidence of safety. Four concrete call examples reinforce the usage patterns.

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.

Resources