Skip to main content
Glama

Edge-case check module with pytest tests

submit_edge_case_check
Idempotent

Produce a standard-library Python module that reports boundary conditions for a text value, plus pytest tests. Choose this when a text value must be classified against a fixed set of boundary conditions, one boolean each. Do not choose this for validation with error messages (use data-validation-module) or for conditions outside the fixed set. Example requests: Write a Python module that reports which boundary conditions a text value satisfies, with tests. | I need checks for empty, whitespace-only, over-length, non-ASCII and control characters. | Generate an edge-case check module and prove it with pytest.

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": {
      "inputs": "<inputs>",
      "authorized_by": "<authorized_by>"
    },
    "name": "submit_edge_case_check"
  }
}

Input Schema

NameRequiredDescriptionDefault
inputsYes
quote_idNoThe quote_id returned by POST /v1/jobs. Required to authorize a priced capability; the service rejects a priced job that does not name the quote it issued.
authorized_byYesIdentifier of the human or agent authorizing this job.
accepted_priceNoThe amount accepted, exactly as quoted (for example "5.00" or 5). Checked against the stored quote, so a price that moved between quote and authorize is refused rather than silently absorbed. Optional, but sent to make the acceptance explicit.

Output Schema

NameRequiredDescriptionDefault
quoteNo
stateYes
job_idYes
artifactsNo
access_tokenNoPer-job credential. Present it as the X-Job-Token header to read the job or list it. Keep it; it is the only credential for this job.
verificationNoIndependent verification. verification.ok = false means the job failed, not a partial success.
capability_idNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already declare it is not read-only, not destructive, idempotent, and not open-world. The description adds useful behavioral context: the output is standard-library Python plus pytest tests, the behavior is fixed by the template, and the template's own tests verify it. It does not repeat or contradict the annotations, though it leaves pricing/authorization details to the schema.

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?

The description is front-loaded with the core action and then gives selection criteria and examples. It is efficient overall, though the three example requests are somewhat redundant after the already-clear usage rules.

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?

Given the output schema and the annotated safety profile, the description provides enough context to select and invoke the tool correctly: it defines the fixed-set boundary-check scope, the Python/pytest deliverable, and the main exclusion. Authorization and pricing details are handled by schema descriptions, so the description is nearly complete, with only minor room to mention the job/quote workflow explicitly.

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 75%, so the schema already documents most parameters, including quote_id and accepted_price. The description still adds meaning by naming the kinds of boundary conditions involved (empty, whitespace-only, over-length, non-ASCII, control characters) and by framing the fixed-set boolean output, which helps an agent understand the nested inputs beyond the raw 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 states a specific verb and resource: produce a standard-library Python module that reports boundary conditions for a text value, plus pytest tests. It also distinguishes the tool from data-validation-module and from checks outside the fixed set, so an agent can identify it without opening sibling schemas.

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 explicitly says when to choose this tool (text value must be classified against a fixed set of boundary conditions, one boolean each) and when not to choose it (validation with error messages should use data-validation-module; conditions outside the fixed set are out of scope). This is direct routing guidance.

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