Skip to main content
Glama

MagicLayers

payment

Read-only

Read the last verified financial state for one private MagicLayers task.

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": {
      "task_id": "<task_id>"
    },
    "name": "payment"
  }
}

Input Schema

NameRequiredDescriptionDefault
task_idYesThe compact or full UUIDv7 returned by MagicLayers.
task_refNoThe private task reference. Omit only when the MCP client supplies task authorization in its HTTP header.

Output Schema

NameRequiredDescriptionDefault
okYes
dataNo
errorNo

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?

Annotations already declare readOnlyHint=true and openWorldHint=true, so the safety profile is covered. The description adds useful context that this returns a cached, previously verified snapshot rather than live state, but says nothing about authorization requirements for private tasks, whether the snapshot can be stale or missing, or any rate limits.

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 no filler; the read action and scope arrive first. It is tight, though the brevity comes partly from leaving purpose- and usage-relevant detail out rather than compressing it.

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?

Return values need not be explained because an output schema exists, and both parameters are described in the schema, so the remaining burden on the description is small. The only meaningful gap is context about when this read is appropriate relative to verify_payment.

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%, so both task_id and task_ref are fully documented in the schema, including the fallback to an HTTP header for authorization. The description adds no parameter-level meaning beyond that, which is the correct baseline when the schema does the work.

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?

"Read the last verified financial state for one private MagicLayers task" gives a concrete verb (read) and resource (financial state), scoped to a single task. It does not name a sibling such as verify_payment or status to distinguish itself, and "financial state" stays abstract about what fields are returned.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description gives no when-to-use guidance: it never says whether to call this before or after verify_payment, nor how it differs from the sibling status tool. Only the phrase "last verified" hints at a dependency on a prior verification step, and even that is left for the agent to infer.

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.

Resources