Skip to main content
Glama

Prepare an upload

prepare_upload

Get a short-lived upload token for this open session (10 minutes, one upload). The local process POSTs the review's files to upload_path with it, so the file contents never pass through you. Then call review_local with the upload_id it returns. Spends nothing.

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": {
      "repo": "<repo>",
      "session_id": "<session_id>"
    },
    "name": "prepare_upload"
  }
}

Input Schema

NameRequiredDescriptionDefault
repoYesThe session's repository, "owner/name".
session_idYesThe session_id start_session returned.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior5/5

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

Beyond readOnlyHint=false and destructiveHint=false, the description discloses the token lifetime (10 minutes), the single-use constraint, the privacy guarantee that file contents never pass through the model, and the cost ('Spends nothing'). Those are exactly the side-effect, expiry and cost facts an agent needs, and they are consistent with the non-read-only, non-destructive annotations.

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?

Four short sentences, front-loaded with the token purpose, followed by the flow and the next call. The terse 'Spends nothing' earns its place as a cost signal and nothing is redundant.

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?

There is no output schema, and the description implicitly names the returned artifacts (upload_path and upload_id) through the flow it describes, which is nearly enough for a two-parameter tool. A slightly more explicit statement of the return payload would close the remaining gap.

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 100% and both parameters are already documented as the session's 'owner/name' repo and the session_id from start_session. The description only re-frames session_id as 'this open session' and adds no format or constraint detail beyond the schema, so baseline 3 applies.

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?

States a specific verb and resource: issuing a short-lived, single-use upload token for the current open session. The scope ('this open session') and the immediate follow-up (review_local with the returned upload_id) make it distinguishable from siblings like request_review and review_local without opening any schema.

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?

It explains the intended flow clearly: hand the token to the local process, which POSTs the files to upload_path, then call review_local with the upload_id. That is strong sequencing guidance, but it does not state when to prefer this over the other review-entry siblings (e.g. request_review), so it stops short of explicit alternatives.

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.