Skip to main content
Glama

CaseMagic — Federal Court Case Lookup & Monitor

Email the result of a queued case lookup

email_queued_case_result
Idempotent

Have the answer to a queued find_federal_case lookup emailed to an address the user gives. When the court record’s daily request allowance is spent, find_federal_case comes back with status "queued" and a queue_id instead of the case; call this only after that, and only once the user has offered an email address and wants the result sent there. Do not ask for an address up front. CaseMagic emails the case page to that address when the lookup has run, or straight away if it already has. Calling it again with the same address changes nothing. Free and needs no account.

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": {
      "queue_id": "<queue_id>",
      "email": "<email>"
    },
    "name": "email_queued_case_result"
  }
}

Input Schema

NameRequiredDescriptionDefault
emailYesThe email address the user offered for the result.
queue_idYesThe queue_id from a find_federal_case result whose status was "queued".

Output Schema

NameRequiredDescriptionDefault
courtNoThe court code the lookup named, or null.
errorNoPresent only when the call failed: a code, a message and, where there is one, an action such as a link to give the user.
statusNopending or running while it waits; ready or not_found once it has run and the answer has been emailed; failed or expired when nothing will be sent.
messageNoWhat to tell the user.
queue_idNoThe queued lookup the address was attached to.
next_stepNoWhat to do next.
case_numberNoThe case number the lookup was for.
notify_email_setNoWhether the lookup now has an address to email the answer to.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.8/5.0
Behavior5/5

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

Annotations only declare readOnlyHint=false, idempotentHint=true, and no destructive/open-world behavior. The description goes further: it explains what actually happens (the case page is emailed when the lookup runs, or immediately if already complete), confirms repeated calls with the same address change nothing, and states there is no cost and no account required.

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 action, then the trigger condition, then the user-consent rule, then behavioral notes. Every sentence carries information the agent cannot get from the schema or annotations.

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?

For a two-parameter side-effecting tool with full schema coverage and an output schema, the definition covers trigger, prerequisites, delivery behavior, idempotency, and cost. The only minor omission is what happens on an invalid or unreachable address, which the output schema likely covers.

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?

The schema already documents both parameters at 100% coverage, so the baseline is 3. The description adds provenance for queue_id (it comes from a status "queued" find_federal_case result) and stresses that the address must be volunteered by the user rather than solicited, which is a meaningful constraint on how the value is obtained.

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 action (email the answer) on a specific resource (a queued find_federal_case lookup result), and ties itself to a named sibling. An agent can distinguish it from find_federal_case and the get_case_* readers 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 Guidelines5/5

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

It gives an explicit precondition (only after find_federal_case returns status "queued" with a queue_id), a second prerequisite (only once the user has offered an email address and wants the result sent), and an explicit prohibition (do not ask for an address up front). This is as prescriptive as guidance gets.

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