Skip to main content
Glama

Approve a dispute for filing

approve_filing
Destructive

Approve filing one of your cases, when your account requires approval (set_approval_required). The approval is for one draft: draft_version is the version of the draft you showed the person (get_case's draft.version). If the case has a newer draft by then, nothing is approved (draft_changed): show the person the newer draft and approve it only once they have read it. For a Harmful or illegal case that may be reported as Defamation, accusation_untrue.attested_by states, with the approval, that the accusation in the highlighted words is untrue and names the person at your company who says so: a Defamation report is never filed without that statement.

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": {
      "case_id": "<case_id>",
      "draft_version": "<draft_version>"
    },
    "name": "approve_filing"
  }
}

Input Schema

NameRequiredDescriptionDefault
case_idYes
draft_versionYes
accusation_untrueNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed7 schema fields changed
    • removedInput schema / properties / case_id / exclusiveMinimum
      Removed value: -0
    • removedInput schema / properties / case_id / maximum
      Removed value: -9007199254740991
    • addedInput schema / properties / case_id / pattern
      Added value: +"^[0-9A-Za-z]{11}$"
    • changedInput schema / properties / case_id / type
      Previous value: -"integer"New value: +"string"
    • removedInput schema / properties / draft_id
      Removed value: -{
      -  "exclusiveMinimum": 0,
      -  "maximum": 9007199254740991,
      -  "type": "integer"
      -}
    • addedInput schema / properties / draft_version
      Added value: +{
      +  "exclusiveMinimum": 0,
      +  "maximum": 9007199254740991,
      +  "type": "integer"
      +}
    • changedInput schema / required
      Previous value: -[
      -  "case_id",
      -  "draft_id"
      -]New value: +[
      +  "case_id",
      +  "draft_version"
      +]
  2. First observed

TDQS

A4.5/5.0
Behavior4/5

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

Goes well beyond the annotations by disclosing that approval binds to exactly one draft version, that a newer draft causes nothing to be approved (draft_changed), and that a Defamation report is never filed without the attested_by statement. Combined with destructiveHint=true, the agent knows this is a consequential write; only the post-approval state (does it file? what is returned?) is left implicit.

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?

Purpose and precondition are front-loaded, and the paragraphs move from gating to draft semantics to the defamation edge case. The last sentence is dense with embedded clauses and could be split, but every sentence carries distinct operational information.

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?

For a destructive, nested-object write with no output schema, the definition supplies the triggering condition, the race-condition failure mode, the recovery instruction, and the special-case attestation requirement. An agent has enough to call it correctly and interpret the one named failure signal.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, so the description carries the load, and it does: draft_version is explained as the version shown to the person, sourced from get_case's draft.version; accusation_untrue.attested_by is explained as naming the person who attests the accusation is untrue and is required for Defamation. Only case_id's format is left to the schema pattern.

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 (approve) on a specific resource (filing one of your cases) and immediately nails the precondition: only when the account requires approval, referencing set_approval_required. That precondition also separates it from siblings like mark_filed and set_approval_required.

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?

Explicitly frames usage as conditional on the account requiring approval and points at set_approval_required as the gate. It also instructs the operator what to do when approval fails (show the newer draft, approve only after it is read), but it does not state what to do when approval is not required, leaving that inference to the caller.

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