Skip to main content
Glama

Propose a definition

propose_definition
Idempotent

Propose a team definition for a number (net_revenue = sum of amount where status is not refunded) when none exists. It is saved as a draft that an owner or editor approves in the app; until then agents don't get it, so tell the user it is waiting. If an approved definition with that name or the same calculation exists, nothing is proposed and you get it back: use it. Returns the value it gives today and the review link.

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": "<name>",
      "description": "<description>",
      "fn": "<fn>"
    },
    "name": "propose_definition"
  }
}

Input Schema

NameRequiredDescriptionDefault
fnYes
whyNoOne sentence on why: what the user asked, or what you noticed in the data. The approver sees it.
nameYessnake_case, e.g. net_revenue
unitNo
whereNoFilters that are part of the definition, as in aggregate
columnNo
aliasesNoOther names people use (sales, turnover)
directionNo
dataset_idYesDataset id from list_datasets, e.g. ds_ab12cd34ef56
descriptionYesIn plain words, as the team would say it: what is counted and what is left out

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?

Adds substantial context beyond the annotations: the proposal is stored as a draft requiring owner/editor approval in the app, agents cannot use it until approved, and the agent must tell the user it is waiting. It also discloses the return content (today's value and a review link) and reinforces the idempotent/dedup behavior, all of which the readOnlyHint=false, destructiveHint=false, idempotentHint=true annotations do not 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?

Four sentences, front-loaded with the core action and scope, then approval state, then dedup fallback, then return value. No filler, and each sentence carries decision-relevant information.

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 10-parameter write tool with no output schema, the description covers the lifecycle (draft → approval → agent visibility), the duplicate case, and the return payload, which is what an agent most needs. A few parameters (unit, direction, aliases) are left entirely to the schema, so it is strong but not exhaustive.

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?

Schema coverage is 60%, and the description compensates by demonstrating how column, fn, and where compose into a definition through the worked example, plus clarifying that name uniqueness matters for the dedup check. It does not add meaning for unit, direction, aliases, or why beyond what the schema already says, leaving some coverage gap unaddressed.

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 (propose a team definition for a number) plus the exact scope condition 'when none exists', and includes a concrete example (net_revenue = sum of amount where status is not refunded) that pins down what a 'definition' is. An agent can distinguish this from siblings like propose_term or propose_brief by the 'definition for a number/calculation' framing.

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 a clear precondition ('when none exists') and an explicit when-not path: if an approved definition with the same name or calculation exists, nothing is proposed and the existing one should be used. It does not name a sibling tool to call instead when a definition already exists, but the internal fallback behavior covers the decision the agent actually needs to make.

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.