Skip to main content
Glama
Portward

Portward

by hamzaelsiesy

draft_definition

Draft a named business term with the tables and columns it uses, then hold it for user approval before it is applied to the profile schema.

Instructions

Draft a named definition for a profile ("active customer", "MRR"): what the term means in the user's data, naming the tables and columns it uses. It waits on this computer for the user's approval and is used for nothing until then; ask them to review it with approve_context. Once approved, the definition is given with the schema and you must use it.

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": {
      "profile": "<profile>",
      "term": "<term>",
      "text": "<text>"
    },
    "name": "draft_definition"
  }
}

Input Schema

NameRequiredDescriptionDefault
termYes
textYes
profileYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4/5.0
Behavior4/5

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

With no annotations present, the description carries the burden and does real work: it discloses that the draft is inert, is persisted locally ("waits on this computer"), and has no effect until human approval, then becomes authoritative ("you must use it"). It omits whether an existing draft for the same term is replaced, whether drafts expire, and what the caller receives back.

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?

Purpose is front-loaded before the lifecycle details, and every clause is relevant to usage. There is mild redundancy in "is used for nothing until then" restating the approval wait, and the run-on semicolon clause could be split, but nothing is truly padding.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a three-parameter, zero-annotation, no-output-schema tool, the description covers intent and the approval lifecycle well but leaves gaps an agent needs: the meaning of 'profile', and what the call returns so it can be handed to approve_context or discard_draft. Adequate but not complete.

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 compensate for all three required parameters. It effectively explains 'term' (via examples) and 'text' (via "what the term means... naming the tables and columns"), but 'profile' is never explained — whether it is a name, an id, or an existing profile reference is left ambiguous.

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 ("Draft a named definition for a profile") and immediately grounds it with concrete examples ("active customer", "MRR") plus the expected content ("what the term means in the user's data, naming the tables and columns it uses"). It is clearly distinguishable from the neighboring approve_context and discard_draft tools, which act on the artifact this one produces.

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?

The workflow is spelled out: draft here, ask the user to review with approve_context, then the definition becomes binding. That gives an agent a clear trigger and a named next step. It does not state any exclusions or when a different drafting tool (e.g. draft_meanings, draft_link) should be chosen instead, so it falls short of a 5.

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