Skip to main content
Glama

Misata Studio: verified synthetic data

Check answers against the answer key

check_answers
Read-onlyIdempotent
The dataset's ground truth: every number it is held to, and the business's standard numbers (MRR, churn, billed
revenue, win rate...), by month, worked out when it was made. Use it to test whatever answers questions about the
data -- an agent, a dashboard, a cube, a text-to-SQL model -- and to say exactly why a wrong answer is wrong.

Call it four ways:
  1. dataset_id alone: the key's numbers (`kpis`: id, title, unit, months) and `questions` to ask, drawn from
     the key ("What is MRR at each month's end for 2025-07?"), each with an id. Their answers are not shown.
  2. answers={question_id: number}: each answer graded within its tolerance; a wrong one is named as the
     usual misreading it equals (voided invoices counted, churn over every account), when it is one.
  3. values with kpi: numbers computed anywhere (ClickHouse, a semantic layer, a BI tile), as one number, a
     {"2025-07": 123.4, ...} series by month, a {"enterprise": 0.55, ...} split by group (a KPI of grain
     "group"), or [[label, value], ...]. Says whether they are that KPI (a tile is read as its latest month, the
     year to date, ...), and what they are instead when not.
  4. sql (and kpi): a query over this dataset's own tables (DuckDB, as query_dataset), run here; a wrong one is
     told which KPI it computes, or the one change after which it returns the key.

The values are plain numbers, so an answer from any engine is checked the same way; export_dataset(format="demo",
dialect="clickhouse") hands over the same data and key to load into ClickHouse.

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": {
      "dataset_id": "<dataset_id>"
    },
    "name": "check_answers"
  }
}

Input Schema

NameRequiredDescriptionDefault
kpiNo
sqlNo
seedNo
valuesNo
answersNo
questionsNo
dataset_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changed
    • addedInput schema / properties / questions / anyOf
      Added value: +[
      +  {
      +    "type": "integer"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • removedInput schema / properties / questions / type
      Removed value: -"integer"
    • addedInput schema / properties / seed / anyOf
      Added value: +[
      +  {
      +    "type": "integer"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • removedInput schema / properties / seed / type
      Removed value: -"integer"
  2. Added

TDQS

A4.5/5.0
Behavior5/5

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

Annotations already declare readOnly/idempotent/non-destructive, and the description goes well beyond them: it explains that answers are graded within tolerance, that wrong answers are mapped to the usual misreading, that SQL is executed in DuckDB against the dataset's own tables, and that a tile is read as its latest month or YTD. That is meaningful behavioral context the annotations cannot supply.

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?

Structure is strong: a front-loaded summary followed by a cleanly numbered enumeration of modes, so an agent can scan to the case it needs. Some sentences are dense with parenthetical asides ('the year to date, ...', 'when it is one'), which costs a little readability but the content earns its place.

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 complex seven-parameter tool with no output schema, the description covers the main invocation paths and the shape of responses per mode (key numbers, per-question grading, verdict plus alternative KPI, or the one change needed). The gaps are the unmentioned `seed` parameter and the underspecified `questions` count, which matter but are peripheral to the primary use cases.

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 0%, so the description must carry the parameters, and it partially does: it explains answers as {question_id: number}, values accepted as a scalar, a {month: value} series, a {group: value} split, or [[label, value]], and what kpi and sql mean. However, `seed` is never mentioned, and `questions` (integer, default 10) is only implied indirectly through the return shape of mode 1 rather than stated as the count of questions to draw.

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 opening states a specific verb and resource: it exposes a dataset's ground-truth numbers and grades answers against them. It explicitly differentiates itself from siblings by naming query_dataset (SQL runs 'here', as query_dataset) and export_dataset (the same key exported for ClickHouse loading).

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 four numbered call modes give an explicit when-to-use map: dataset_id alone to get the key and questions, answers to grade, values+kpi to verify numbers from another engine, sql+kpi to check a query. Each mode names its condition and its sibling (ClickHouse, semantic layer, BI tile, query_dataset, export_dataset).

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