Skip to main content
Glama

scan

Quote a ZIP, or launch it once the user has acknowledged the price.

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": {
      "upload_id": "<upload_id>",
      "contracts_in_scope": "<contracts_in_scope>",
      "docs": "<docs>",
      "project_name": "<project_name>"
    },
    "name": "scan"
  }
}

Input Schema

NameRequiredDescriptionDefault
docsYesRepo-relative paths of `.md` files inside the uploaded ZIP, or []. Never prose or URLs: put descriptions in `additional_docs`.
price_ackNo
upload_idYes
project_nameYes
additional_docsNoFree-text context for the scanner: what the protocol is for, scope notes, intended behaviour, trusted roles, accepted risks. Not file paths.
contracts_in_scopeYesRepo-relative paths of smart-contract source files inside the uploaded ZIP (e.g. `src/Vault.sol`), not bare file names.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.2/5.0
Behavior3/5

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

With no annotations, the description carries the full behavioral burden, and it does disclose the most important trait: this tool can incur a cost and has a consent gate before the paid launch. It does not say whether the quote phase is free, whether launch is long-running/asynchronous, whether repeated launches are idempotent, or what happens to an already-launched ZIP. Given the money-spending nature of the tool, more disclosure would be warranted.

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 the sequence (quote → launch) stated up front and no filler. It is efficient, though the terseness tips into under-specification rather than model conciseness for a 6-parameter, cost-incurring tool.

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

Completeness2/5

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

For a mutation tool with six parameters, no annotations, and a monetary gate, the description is thin: it omits the upload prerequisite, the meaning of upload_id, what the scan produces, and any note about runtime or cost magnitude. The existence of an output schema excuses it from describing return values, but the preconditions and cost behavior remain undocumented.

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 50%: docs, additional_docs, and contracts_in_scope are documented in the schema, while upload_id, project_name, and price_ack are not. The description does add real meaning for price_ack ('acknowledged the price'), but leaves upload_id (presumably an identifier returned by the upload tool) and project_name entirely unexplained. Partial compensation for the coverage gap, not full.

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

Purpose3/5

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

The description names two modes (quote, launch) but never says what is actually being scanned — 'Quote a ZIP' is vague and the resource is only implied. An agent can infer the security-scan nature from the schema fields (contracts_in_scope) and the scan_results sibling, but not from this sentence alone. It stops short of a specific verb+object statement like 'estimate cost for, or run, a smart-contract security scan over an uploaded ZIP'.

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?

There is a real usage rule: quote first, and only launch after the user has acknowledged the price, which maps directly onto the price_ack parameter. What is missing is any exclusion or prerequisite routing — nothing says a ZIP must first be uploaded via prepare_zip_upload, and no sibling is named as an alternative for retrieving results.

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.