Skip to main content
Glama

signal_exit_code

The shell exit status: 0 behaves like a ping, 1-255 record the code as a failure. curl -fsS $ORIGIN/in/ID/$? at the end of a script is the whole integration. 0 behaves exactly like a plain ping; 1 to 255 record the code and leave the failure for the cron.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYesMonitor ID, from `Monitor.ingest_url`.
exit_codeYesExit status, 0 to 255. Outside that range it is a 400.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4/5.0
Behavior4/5

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

With no annotations present, the description takes on the behavioral disclosure burden. It discloses the key behavior: 0 is not a failure, 1-255 records a failure, and values outside 0-255 are rejected as 400. The phrase 'leave the failure for the cron' adds useful context about downstream handling, though some ambiguity remains.

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?

The description is compact and front-loads the essential 0-vs-1-255 semantics in the first sentence. The curl command is a worthwhile concrete integration example. There is some redundancy in restating the 0-ping behavior, but nothing is excessive.

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 simple two-parameter ingestion-style tool, the description gives enough context to call it correctly: the curl pattern, the meaning of the exit code, and the error condition for out-of-range values. There is no output schema and the endpoint is effectively a fire-and-forget signal, so not describing a return value is acceptable. It could be more explicit about authorization or response behavior, but those gaps are minor.

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 input schema already documents both parameters and their ranges with 100% coverage, so the baseline is 3. The description adds real value by explaining that exit_code 0 behaves like a ping rather than a recorded failure, and by showing the shell `$?` as the source of the value.

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 explains the tool's behavior: exit code 0 is treated as a ping, while 1-255 records a failure. It uses the shell-exit context and curl recipe to make the resource clear, though it never states the imperative 'signals the exit code' directly. It differentiates from related signal/ping tools through the 0-as-ping distinction, making the purpose recognizable.

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?

It gives concrete usage guidance: run the curl command at the end of a script to integrate the monitor check. It explains how 0 and nonzero exit codes are handled, which helps an agent decide whether this tool is appropriate. It does not explicitly name sibling alternatives or say when not to use them, so it stops short of a 5.

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