Skip to main content
Glama

ask

Answers a one-sentence business question using confirmed ontology definitions when no query can be written, returning the answer with its definitions or a refusal with the reason.

Instructions

只在写不出 ontopoc_query 时用(问题里的说法对不上任何属性或关系,要模型来理解):用已确认的定义回答一句话问的业务问题(模型把问题写成查询,代码在数据上算)。答得出来给 answer 和它用到的定义 definitions;用到的定义没确认、问题超出范围、取值没有含义时是拒绝:status 是 refused 或 ontology_gap / query_limit / definition_unmet,reason 说原因,refusal 说拒绝的种类和涉及的定义。拒绝就把原因原样转告人,不要换问法绕过,更不要自己猜一个答案。query_text 是这道题写成的本体查询,改条件、重跑都用 ontopoc_query,不再调用模型。会调用模型,慢且花钱;每问一次都记进问答历史、算一次提问,不要为了重试再问。

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": {
      "question": "<question>"
    },
    "name": "ask"
  }
}

Input Schema

NameRequiredDescriptionDefault
questionYes要问的业务问题

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.2.0

TDQS

A4.6/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does well: it discloses that a model is invoked (slow, costly), that every call is recorded in Q&A history and counts as a question, and it enumerates refusal statuses (refused, ontology_gap, query_limit, definition_unmet) along with the reason/refusal fields. It stops short of describing answer formatting, latency or any limits on answer content beyond the refusal conditions.

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?

The critical gating condition is front-loaded in the first clause, and nearly every clause carries distinct operational information (routing rule, refusal taxonomy, cost, history accounting). It is a dense single block, however, and a small amount of the refusal-field enumeration duplicates what response fields would convey.

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 annotations and no output schema, the description fully compensates: it explains return fields (answer, definitions, status, reason, refusal, query_text), the refusal taxonomy, the cost and side effect of calling, and what to do on refusal. An agent has everything needed to call it correctly and interpret the result.

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?

There is a single parameter whose schema already documents it at 100% coverage (string, maxLength 300, '要问的业务问题'), so the baseline is 4. The description adds that the input must be a natural-language business question rather than a query, which meaningfully distinguishes it from query syntax, and warns that a badly phrased question triggers a refusal rather than a guess.

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 names a specific action (answer a one-sentence business question using confirmed ontology definitions, with the model writing the query and code computing it) and explicitly scopes it against the sibling tool 'ontopoc_query'. An agent can tell what this does and what it is not for without opening any schema.

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?

It gives an explicit gate: use only when the question's wording matches no property or relation and you cannot write an ontopoc_query. It also states the reverse routing rule — to change conditions or re-run, use ontopoc_query instead — plus prohibitions on rephrasing to bypass a refusal, guessing an answer, and retrying. This is unusually complete guidance.

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