Skip to main content
Glama

Upload a hand history

upload_hand_history

Uploads a small pasted hand history or tournament summary (the hosted /upload page handles files). Runs the same ingestion pipeline as the upload page and returns hands parsed, tournaments parsed, and errors. Stored hands feed session summaries, results curves, and opponent notes.

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": {
      "text": "<text>"
    },
    "name": "upload_hand_history"
  }
}

Input Schema

NameRequiredDescriptionDefault
textYesRaw hand history or tournament summary text.
filenameNoName to record for the paste. Defaults to "paste.txt".

Output Schema

NameRequiredDescriptionDefault
errorsNoParse errors, if any.
filenameNoFilename recorded for the paste.
persistedNoTrue when the hands were written to durable storage.
sessionIdNoSession id for the stored hands, or null when nothing parsed.
handsParsedNoHands parsed.
persistenceNoWhere the hands live: "database" (durable) or "process_memory" (database unavailable).
tournamentsParsedNoTournament summaries parsed.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedOutput schema / properties / persisted / description
      Previous value: -"Always false: nothing is written to durable storage."New value: +"True when the hands were written to durable storage."
    • changedOutput schema / properties / persistence / description
      Previous value: -"Where the hands live, \"process_memory\"."New value: +"Where the hands live: \"database\" (durable) or \"process_memory\" (database unavailable)."
  2. Changed2 schema fields changed
    • addedInput schema / properties / filename / description
      Added value: +"Name to record for the paste. Defaults to \"paste.txt\"."
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "description": "Result of ingesting one pasted hand history.",
      +  "properties": {
      +    "errors": {
      +      "description": "Parse errors, if any.",
      +      "items": {
      +        "description": "One parse error.",
      +        "type": "string"
      +      },
      +      "type": "array"
      +    },
      +    "filename": {
      +      "description": "Filename recorded for the paste.",
      +      "type": "string"
      +    },
      +    "handsParsed": {
      +      "description": "Hands parsed.",
      +      "type": "integer"
      +    },
      +    "persisted": {
      +      "description": "Always false: nothing is written to durable storage.",
      +      "type": "boolean"
      +    },
      +    "persistence": {
      +      "description": "Where the hands live, \"process_memory\".",
      +      "type": "string"
      +    },
      +    "sessionId": {
      +      "description": "Session id for the stored hands, or null when nothing parsed.",
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "tournamentsParsed": {
      +      "description": "Tournament summaries parsed.",
      +      "type": "integer"
      +    }
      +  },
      +  "type": "object"
      +}
  3. First observed

TDQS

A4.2/5.0
Behavior4/5

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

Annotations only declare the safety profile (readOnly=false, idempotent=false, destructive=false, openWorld=false); the description adds real value by disclosing that ingestion is persistent ("Stored hands feed session summaries, results curves, and opponent notes") and that it runs the same pipeline as the upload page. It does not warn about duplicate uploads or what a partial-failure response looks like, which matters given idempotentHint=false.

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?

Three sentences, front-loaded with what the tool accepts and its scope boundary, then behavior, then downstream effect. No restatement of the title and no filler.

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?

An output schema exists and the description still summarizes the return shape (hands parsed, tournaments parsed, errors), and it covers persistence effects. The remaining gap is operational: nothing about duplicate submissions or practical size ceilings for a non-idempotent mutation tool.

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 100%, so both parameters are already documented, and the description adds no syntax or format detail beyond echoing that the payload is hand history or tournament summary text. It never mentions the filename parameter's role in how the paste is recorded. Baseline 3 applies when the schema does the heavy lifting.

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 ("Uploads a small pasted hand history or tournament summary") and immediately delimits scope against the sibling route, noting that "the hosted /upload page handles files." An agent can distinguish this paste-ingest tool from the file-based path without opening either 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?

Clear about the intended input modality (pasted text, small payloads) and points to the alternative for files. It does not name get_upload_link explicitly or state exclusions like size limits or duplicate re-uploads, so the routing guidance is clear but not fully explicit.

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.