Skip to main content
Glama

extract_field

Read-onlyIdempotent

Pull a JSON path out of an event body. Auth: Authorization Bearer read token header.

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": {
      "inbox_id": "<inbox_id>",
      "event_id": "<event_id>",
      "json_path": "<json_path>"
    },
    "name": "extract_field"
  }
}

Input Schema

NameRequiredDescriptionDefault
event_idYesThe numeric id of the event.
inbox_idYesThe inbox id returned when the inbox was created (private; the slug in the ingest URL is the public part).
json_pathYesDot-separated path into the event JSON body, e.g. user.email.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / inbox_id / description
      Previous value: -"The inbox id returned when the inbox was created."New value: +"The inbox id returned when the inbox was created (private; the slug in the ingest URL is the public part)."
  2. Changed3 schema fields changed
    • addedInput schema / properties / event_id / description
      Added value: +"The numeric id of the event."
    • addedInput schema / properties / inbox_id / description
      Added value: +"The inbox id returned when the inbox was created."
    • addedInput schema / properties / json_path / description
      Added value: +"Dot-separated path into the event JSON body, e.g. user.email."
  3. First observed

TDQS

B3.2/5.0
Behavior3/5

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

Annotations already declare readOnly, idempotent, non-destructive, and closed-world, so the safety profile is covered. The description adds a genuinely useful operational detail — the Bearer read token requirement — but says nothing about what happens when the path is absent or unparseable, which is the main behavioral risk for a path extractor.

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?

Two short sentences with the core purpose front-loaded and no wasted prose. The auth note is terse to the point of being telegraphic ("Authorization Bearer read token header"), slightly reducing readability.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a simple read tool with full schema coverage and annotations covering safety, most needs are met. The notable gap is return semantics — whether the extracted value is returned raw, typed, or errors on a missing path — which matters for a field-extraction tool with no output schema.

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?

Schema description coverage is 100% and all three parameters are documented with examples (json_path even includes "user.email"). The description adds no meaning beyond the schema, so the baseline of 3 applies.

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?

"Pull a JSON path out of an event body" gives a specific verb (pull/extract) and resource (a field within an event body), which is meaningfully narrower than get_event. It does not explicitly name the sibling it differs from, so the distinction from get_event must be inferred.

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

Usage Guidelines2/5

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

There is no guidance on when to use this versus get_event (which returns the whole body) or list_events. The only additional sentence is an auth requirement, not an applicability condition.

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.