Skip to main content
Glama

ai_suggest_tests

Analyze existing API requests in a workspace and suggest assertions, edge cases, and test scenarios to close coverage gaps.

Instructions

Analyse existing requests in a workspace and suggest assertions, edge cases, and test scenarios you haven't covered yet.

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": {
      "workspace_id": "<workspace_id>"
    },
    "name": "ai_suggest_tests"
  }
}

Input Schema

NameRequiredDescriptionDefault
workspace_idYes
environment_idNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.6-beta

TDQS

B3.2/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the burden. It does disclose the analysis source (existing requests in a workspace) and the nature of the output (suggestions, not mutations), but leaves open whether anything is written, what the AI call costs in latency, and what form the suggestions take.

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?

A single front-loaded sentence with no filler; the action and the deliverables both land immediately. The trailing 'you haven't covered yet' is slightly loose but not wasteful.

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 two-parameter, no-annotation, no-output-schema tool, the definition covers intent but not the mechanics. An agent still lacks guidance on the workspace/environment distinction and on what a suggestion result looks like.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0% and the description never mentions either parameter. Nothing explains what workspace_id scopes over or what environment_id changes about the analysis, so the two most decision-relevant inputs are undocumented in both places.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb pair (analyse, suggest) and a specific resource (existing requests in a workspace), plus the kinds of artifacts produced: assertions, edge cases, test scenarios. It is distinguishable from siblings like ai_fix_request or ai_generate_body, though it never names an alternative explicitly.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Usage is implied: reach for this when you want coverage gaps filled on already-existing requests. There is no explicit when-to-use trigger, no when-not guidance, and no named alternative for related tasks such as fixing or generating a body, so the agent must infer the boundary.

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