Skip to main content
Glama

Check text before sending

endos_check_before_sending
Read-onlyIdempotent

Runs Endos's outgoing check on text the agent plans to send, without sending it, and answers allowed, or refused with each category found (for example an email address or a key) and a hint on what to change. Suited to checking a message or document before a call that may be refused; endos_explain_refusal covers a call that was already refused. A connection id from endos_list_connections applies that connection's own settings for email addresses, names and handles. It sends nothing to any connected service, does not store the text, writes no call record, and Endos limits how often it can be used. Allowed is not a promise: a real call gets other checks too, so it may still be refused or held.

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": {
      "text": "<text>"
    },
    "name": "endos_check_before_sending"
  }
}

Input Schema

NameRequiredDescriptionDefault
textYesThe exact text the agent plans to send, for example a message or document body; up to 100,000 characters. It is checked, never sent or stored.
connectionNoOptional: the connection id that endos_list_connections shows, to apply that connection's rules.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Annotations already declare readOnly/idempotent/non-destructive/closed-world, but the description adds real behavioral facts beyond them: nothing is sent to any connected service, the text is not stored, no call record is written, and the endpoint is rate limited. The closing caveat that 'allowed is not a promise' prevents over-trusting a pass result, which is exactly the kind of expectation-setting annotations cannot convey.

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?

Front-loaded with the core action and result shape, then usage routing, then behavioral guarantees and the caveat. The negations ('sends nothing ... does not store ... writes no call record') are slightly repetitive but each carries distinct information, so the length is mostly earned.

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?

No output schema exists, and the description compensates by describing the return values (allowed vs refused with categories and a remediation hint). For a two-parameter read-only check tool, nothing an agent needs to decide or invoke correctly is missing.

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 both fields are already documented, but the description adds meaning the schema does not: the connection id applies that connection's own settings for email addresses, names and handles, explaining what the optional parameter actually changes. It also restates the text field's non-persistence, which is behavior rather than schema detail.

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 (runs Endos's outgoing check on text) plus the outcome shape: 'allowed, or refused with each category found ... and a hint on what to change'. It is clearly distinguished from endos_explain_refusal by naming that sibling and its different scope.

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?

Explicit when-to-use: 'Suited to checking a message or document before a call that may be refused', with the complementary case routed to endos_explain_refusal ('covers a call that was already refused'). It also tells the agent how to obtain a connection id (endos_list_connections), which is the only prerequisite.

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