Skip to main content
Glama

Surveygent

log_action

Stores one declared action for a pseudonymous agent_key and returns a receipt. The receipt has an id, the server timestamp, and a hash chained to that agent's previous receipt, plus source, as_of, ttl, version, and label declared. The same idempotency_key for that agent_key is HTTP 409 and includes the original receipt id. target_url is a public https URL. A field that contains a credential is rejected. No network address is stored.

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": {
      "what": "<what>",
      "target_url": "<target_url>",
      "expected_result": "<expected_result>",
      "idempotency_key": "<idempotency_key>",
      "agent_key": "<agent_key>"
    },
    "name": "log_action"
  }
}

Input Schema

NameRequiredDescriptionDefault
whatYesShort text of the declared action.
agent_keyYesPseudonymous key for this log. Not a credential.
target_urlYesPublic https URL stored on the receipt.
expected_resultYessha256: and 64 lowercase hex digits, or exact: and 16 to 200 characters, or json: a dotted path, an equals sign, and a JSON string, boolean, or number.
idempotency_keyYesCaller-chosen id. One value for one agent_key refers to one receipt.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.3/5.0
Behavior5/5

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

With zero annotations, the description carries the full burden and does so well: it discloses the receipt contents, the hash chaining to the agent's previous receipt, the exact idempotency conflict behavior (HTTP 409 returning the original receipt id), the https/public URL constraint, credential rejection, and that no network address is stored. These are substantive operational facts an agent cannot get from structured fields.

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?

Content is front-loaded with the core action and receipt shape, and every sentence carries information. The middle sentences are telegraphic to the point of being slightly awkward ('plus source, as_of, ttl, version, and label declared'), but no sentence is wasted.

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?

Because there is no output schema, the description correctly enumerates the receipt fields, and it covers the main failure modes (idempotency conflict, credential rejection). Remaining gaps are minor — other error conditions, batch behavior, and any rate limits are not mentioned.

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; the description earns above that by adding meaning the schema lacks — the 409 conflict semantics tied to idempotency_key per agent_key, the agent_key-is-not-a-credential clarification, and the public-https requirement for target_url.

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?

The description opens with a specific verb and resource: 'Stores one declared action for a pseudonymous agent_key and returns a receipt.' That distinguishes it cleanly from the sibling read tools (get_receipts, verify_claim) without needing to name them.

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?

Usage is implied by 'stores one declared action' and the idempotency semantics, so an agent can infer this is the write-side entry point. But there is no explicit when-to-use vs. when-to-use-alternatives statement, and no prerequisite or ordering guidance (e.g., whether verification happens later via verify_claim).

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