Skip to main content
Glama

Mandate Law: legal counsel for AI products

Answer counsel's question

answer_open_question

Answer one of counsel's open questions (listed by get_matter). Before the letter is signed, only scoping questions can be answered: keep those answers short and general, with no code, secrets, or confidential details. After signing, verify in the code or the running build where you can, and say how you know. If you cannot verify it, answer 'unknown' and say what a human would need to check.

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": {
      "matter_id": "<matter_id>",
      "matter_token": "<matter_token>",
      "question_id": "<question_id>",
      "answer": "<answer>"
    },
    "name": "answer_open_question"
  }
}

Input Schema

NameRequiredDescriptionDefault
answerYesA fact, as defined in https://mandatelaw.ai/api/intake-schema.json#/$defs/fact.
matter_idYesThe matter_id returned by request_engagement, e.g. M-1a2b3c4d5e6f.
question_idYesThe id of the open question, from get_matter's open_questions list.
matter_tokenYesThe matter_token returned by request_engagement. Keep it secret.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / answer / properties / source / type
      Added value: +"string"
  2. Changed8 schema fields changed
    • addedInput schema / properties / answer / properties / evidence / description
      Added value: +"Where in the code or build this was verified. Short excerpts only; never secrets, keys, or user data."
    • addedInput schema / properties / answer / properties / evidence / items / properties / excerpt / description
      Added value: +"The few relevant lines, copied as written."
    • addedInput schema / properties / answer / properties / evidence / items / properties / lines / description
      Added value: +"Line range, e.g. 41-48."
    • addedInput schema / properties / answer / properties / evidence / items / properties / path / description
      Added value: +"File path in the repository, e.g. src/agent/tools/checkout.ts."
    • addedInput schema / properties / answer / properties / notes / description
      Added value: +"Anything counsel should know about this answer, such as exceptions or what you could not verify."
    • addedInput schema / properties / answer / properties / source / description
      Added value: +"How you know. Prefer verified_in_code or verified_in_running_build; use stated_by_client for what your human told you, and unknown if you could not check."
    • addedInput schema / properties / matter_id / description
      Added value: +"The matter_id returned by request_engagement, e.g. M-1a2b3c4d5e6f."
    • addedInput schema / properties / question_id / description
      Added value: +"The id of the open question, from get_matter's open_questions list."
  3. Changed2 schema fields changed
    • addedInput schema / properties / answer / properties / value / description
      Added value: +"The answer in plain words, e.g. \"yes\", \"no\", or a short description of what the code does."
    • addedInput schema / properties / answer / properties / value / type
      Added value: +"string"
  4. First observed

TDQS

A4.6/5.0
Behavior4/5

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

Annotations only declare it is a non-destructive, non-idempotent, non-read-only write; the description adds substantial context beyond that — a pre/post-signing gate on what may be answered, a prohibition on code, secrets and confidential details pre-signing, and a verification obligation. It does not state whether re-answering an already-answered question is allowed or what happens to question state, which is the one behavioral gap.

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 tight sentences, front-loaded with purpose, then the pre-signing rule, then the post-signing rule, then the failure mode. No sentence can be removed without losing a rule the agent needs.

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 write tool with no output schema and four required parameters, the description covers the lifecycle gate, confidentiality constraints, verification expectation, and fallback, which is close to complete. Minor residual gaps: the term 'the letter' is never defined and repeat-answer behavior is unstated.

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?

Schema coverage is 100%, so the baseline is 3, but the description adds real meaning over the schema by tying the answer-value field to the source field: verify where possible, and use 'unknown' when you cannot. That specifies how value/source should be paired rather than just restating field descriptions.

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 ('Answer one of counsel's open questions') and names the sibling that surfaces those questions ('listed by get_matter'), so the agent can tell it apart from check_scope or check_change without opening a 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?

Gives explicit conditional routing: before signing only scoping questions may be answered and answers must be short and general; after signing, verification is expected. It also names the fallback ('answer unknown and say what a human would need to check'), leaving little to inference.

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