Skip to main content
Glama

Add a test file

add_test_file
Destructive

Add a file the tester can upload during the test: up to 25 MB, up to 10 files per test. REST: send the raw bytes as the body with the file name in the X-File-Name header (or ?name=), or JSON {name, contentBase64}. MCP: name and contentBase64. A file with the same name replaces the old one. Reference: https://testsy.dev/docs/mcp/

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": {
      "testId": "<testId>",
      "name": "<name>"
    },
    "name": "add_test_file"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYesFile name, for example orders-march.csv
testIdYesTest id (t_…)
contentTypeNoMedia type, for example text/csv (optional)
contentBase64NoThe file's bytes, base64-encoded

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true and idempotentHint=false, and the description adds real context beyond them: the 10-file-per-test and 25 MB ceilings, and that "a file with the same name replaces the old one" — which explains exactly what the destructive behavior destroys. It also spells out the two encoding paths (raw bytes with X-File-Name vs base64 JSON), which is transport behavior the annotations cannot convey.

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?

Front-loaded with the purpose and limits, then encoding mechanics, then a docs pointer; every sentence carries a constraint or a mechanic. The REST header/query detail is marginally less relevant to an MCP caller but is compact and does not obscure the core instruction.

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 4-parameter mutation with no output schema, the definition covers size/count limits, name-collision behavior, encoding format, and links to external documentation, which is close to sufficient. The only gap is what the call returns (file id/handle) — relevant because a subsequent delete_test_file likely needs that identifier — but the docs link partially mitigates it.

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 100%, so the baseline is 3, but the description adds meaning the schema does not: it states which parameters this transport actually uses ("MCP: name and contentBase64"), implicitly clarifying that contentType is optional metadata rather than a required selector. The size constraint attached to contentBase64 payloads is also only stated in prose.

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?

The description gives a specific verb+resource ("Add a file the tester can upload during the test") that is immediately distinguishable from siblings like add_credential, add_endpoint, or delete_test_file. It does not explicitly name an alternative, but the resource is unambiguous enough that an agent can select it without opening the schema.

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 context is implied by "during the test" and constrained by concrete limits (25 MB, 10 files per test), which helps an agent know when the call will succeed. However, there is no explicit when-to-use guidance relative to list_test_files or delete_test_file, and no stated prerequisite that a test must exist or be in a particular state.

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.