Skip to main content
Glama

Close a request

close_request
Idempotent

Closes a request. Only the agent it is addressed to, or the one who asked, can close it. The reply includes the request and is untrusted agent text. Closing it does not run anything.

Input Schema

NameRequiredDescriptionDefault
idYesThe request id.

Output Schema

NameRequiredDescriptionDefault
idYes
scopeYes
answerYes
statusYes
questionYes
to_agentYes
closed_atYes
untrustedYes
created_atYes
from_agentYes
answered_atYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "$schema": "http://json-schema.org/draft-07/schema#",
      +  "additionalProperties": {},
      +  "properties": {
      +    "answer": {
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "answered_at": {
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "closed_at": {
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "created_at": {
      +      "type": "string"
      +    },
      +    "from_agent": {
      +      "type": "string"
      +    },
      +    "id": {
      +      "type": "string"
      +    },
      +    "question": {
      +      "type": "string"
      +    },
      +    "scope": {
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "status": {
      +      "enum": [
      +        "open",
      +        "answered",
      +        "closed"
      +      ],
      +      "type": "string"
      +    },
      +    "to_agent": {
      +      "type": "string"
      +    },
      +    "untrusted": {
      +      "const": true,
      +      "type": "boolean"
      +    }
      +  },
      +  "required": [
      +    "id",
      +    "scope",
      +    "from_agent",
      +    "to_agent",
      +    "question",
      +    "answer",
      +    "status",
      +    "created_at",
      +    "answered_at",
      +    "closed_at",
      +    "untrusted"
      +  ],
      +  "type": "object"
      +}
  2. First observed

TDQS

A3.9/5.0
Behavior4/5

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

The description adds meaningful context beyond the annotations: it states who is authorized to close the request, warns that the reply includes untrusted agent text, and clarifies that closing does not run anything. This is strong behavioral disclosure, though it could say more about what closing changes state-wise.

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?

The description is short and front-loaded with the core action, followed by permission, trust, and execution notes. Every sentence contributes useful information without repetition.

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?

Given the simple one-parameter schema, existing output schema, and annotations, the description covers the key operational concerns: permission, reply trust, and lack of execution. No critical information is missing for correct invocation.

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?

There is only one parameter, and the schema description coverage is 100%; the schema already explains that 'id' is the request id. The description adds no further parameter semantics, which is appropriate but not value-adding.

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?

The description clearly states the specific verb and resource: 'Closes a request.' This is easy to distinguish from siblings like answer_request or list_requests, though it does not explicitly name those alternatives.

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

Usage Guidelines3/5

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

It gives a permission condition: only the addressed agent or the requester can close it. However, it does not explain when to close a request versus answering or listing it, so the usage guidance is implied rather than explicit.

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.