Skip to main content
Glama
Mipiti
by Mipiti

Add Functional Test

add_functional_test

Hand-author a single functional test and map it to one or more objectives. Registers an extra test not produced by generation; CI evidence verifies it later.

Instructions

Hand-author a single functional test and map it to one or more objectives. Mutating.

Generation (generate_functional_objectives) already specifies the tests to implement, so use this only to register an extra test that generation did not produce; a manually-added test survives regeneration/refresh. For bulk-registering tests that already exist in your codebase, use import_functional_tests instead. This records the test at the status you claim — it does not run or verify anything; CI verification happens only when you attach TEST_EXISTS/TEST_ATTESTED evidence via submit_functional_test_assertions.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
statusNonot_implemented | implemented | verified — an operator claim only; an independent CI run is what actually verifies the test. Defaults to not_implemented.not_implemented
model_idYesID of the threat model.
descriptionYesWhat the test proves.
component_idsNoComma-separated component ids the test exercises (optional).
server_versionYes
functional_objective_idsYesComma-separated objective ids the test satisfies (at least one required; get them from get_functional_objectives).

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.68.2
    • changedInput schema / properties / functional_objective_ids / description
      Previous value: -"Comma-separated objective ids the test satisfies (at least one required; get them from list_functional_objectives)."New value: +"Comma-separated objective ids the test satisfies (at least one required; get them from get_functional_objectives)."
  2. Changed2 schema fields changedv0.66.0
    • changedInput schema / properties / functional_objective_ids / description
      Previous value: -"Comma-separated objective ids the test satisfies."New value: +"Comma-separated objective ids the test satisfies (at least one required; get them from list_functional_objectives)."
    • changedInput schema / properties / status / description
      Previous value: -"not_implemented | implemented | verified (an operator claim;\nan independent CI run is what actually verifies it)."New value: +"not_implemented | implemented | verified — an operator claim only; an independent CI run is what actually verifies the test. Defaults to not_implemented."
  3. Addedv0.62.2
  4. Removedv0.62.0
  5. First observedv0.57.0

TDQS

A4.6/5.0
Behavior5/5

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

With no annotations provided, the description carries the full burden of behavioral disclosure. It clearly states the operation is mutating, that it records only the status the caller claims, that it does not run or verify anything, that CI verification happens separately, and that manually-added tests survive regeneration/refresh.

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?

Every sentence earns its place: purpose, mutation flag, routing to alternatives, and the no-verification caveat. It is dense but not bloated, and the most important information is front-loaded.

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?

The description plus the rich schema cover purpose, alternatives, side effects, and the existence of an output schema means return values need no explanation. The only gap is that the required server_version parameter is undocumented in both the tool description and the input schema, which an agent may need to fill correctly.

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 high (83%), so the schema already documents most parameters; the description adds little parameter-specific meaning beyond reaffirming one-or-more objective mapping and the status-as-claim behavior. The required server_version parameter remains unexplained in both the description and schema.

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 opens with a specific verb and resource: 'hand-author a single functional test and map it to one or more objectives.' It also names what the tool is not — generation and bulk import — which clearly distinguishes it from nearby siblings such as generate_functional_objectives and import_functional_tests.

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 explicit when-to-use guidance: use only to register an extra test that generation did not produce, use import_functional_tests for bulk-registering existing tests, and attach verification evidence via submit_functional_test_assertions. This leaves no ambiguity about when to choose this tool over alternatives.

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

Deploy Server

Other Tools