Skip to main content
Glama

List your deals

my_deals
Read-onlyIdempotent

Lists up to 100 recent deal threads in open, agreed, or closed status so you can find a deal; use deal_status for one deal's messages and HTLC swap details.

Instructions

Your most recent deal threads (up to 100), in every status (open, agreed, closed): threadId, status, currentPrice, pendingPrice, who has accepted and the request. Use it to find a deal; for one deal's messages and HTLC swap use deal_status. Takes no parameters.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "my_deals"
  }
}

Input Schema

NameRequiredDescriptionDefault

No arguments

Output Schema

NameRequiredDescriptionDefault
errorNoSet instead when the call failed
itemsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv1.11.1
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "$schema": "http://json-schema.org/draft-07/schema#",
      +  "additionalProperties": {},
      +  "properties": {
      +    "error": {
      +      "additionalProperties": {},
      +      "description": "Set instead when the call failed",
      +      "properties": {
      +        "code": {
      +          "type": "string"
      +        },
      +        "is_retryable": {
      +          "type": "boolean"
      +        },
      +        "message": {
      +          "type": "string"
      +        },
      +        "recovery_hint": {
      +          "type": "string"
      +        }
      +      },
      +      "type": "object"
      +    },
      +    "items": {
      +      "items": {
      +        "additionalProperties": {},
      +        "properties": {
      +          "currentPrice": {
      +            "description": "Total price on the table",
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "pendingPrice": {
      +            "description": "Counter awaiting acceptance",
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "status": {
      +            "type": "string"
      +          },
      +          "threadId": {
      +            "description": "Deal thread id",
      +            "type": "string"
      +          },
      +          "youAccepted": {
      +            "description": "This side accepted currentPrice",
      +            "type": "boolean"
      +          }
      +        },
      +        "type": "object"
      +      },
      +      "type": "array"
      +    }
      +  },
      +  "type": "object"
      +}
  2. Addedv0.10.0

TDQS

A4.6/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive and open-world, so the safety profile is covered. The description adds real context beyond them: a hard cap of 100 results, no status filtering, and implicit scoping to the calling user's own deals ('Your'). It doesn't mention ordering guarantees or what happens beyond the 100 cap, which keeps it at 4.

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?

Two dense sentences, front-loaded with the scope and cap before the routing advice; nothing is padding. The enumerated return fields (threadId, status, currentPrice, pendingPrice, acceptance, request) partially duplicate the existing output schema, which is the only mild redundancy.

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

Completeness5/5

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

With zero parameters, full annotation coverage and an output schema present, the description supplies everything still needed for selection: scope, cap, status coverage, and the sibling to use instead. No gap remains that would cause a misinvocation.

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?

Zero parameters yields a baseline of 4, and the description confirms this explicitly ('Takes no parameters'), removing any doubt an agent might have about passing filters. No further semantic detail is possible for an empty 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?

States a specific resource and scope: 'Your most recent deal threads (up to 100), in every status (open, agreed, closed)', and immediately contrasts with the sibling 'deal_status'. An agent can tell exactly what this returns versus the single-deal tool.

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?

Gives explicit when-to-use ('Use it to find a deal') and names the alternative for the divergent case ('for one deal's messages and HTLC swap use deal_status'). This is a clean routing rule between two siblings.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.