Skip to main content
Glama

Check a pending MCP target

get_pending_target
Read-onlyIdempotent

Check a pending MCP target that create_target left for your user to finish. Call it once when your user says they are done. Returns status 'awaiting_user', 'created' (with model_id), 'cancelled' or 'expired'. Requires the read scope.

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": {
      "pending_target_id": "<pending_target_id>"
    },
    "name": "get_pending_target"
  }
}

Input Schema

NameRequiredDescriptionDefault
pending_target_idYesThe pending_target_id create_target returned.

Output Schema

NameRequiredDescriptionDefault
statusYes'awaiting_user' until your user finishes at finish_url; 'created' once the server is saved; 'cancelled' when it was cancelled in the Enoki app; 'expired' when finish_url stopped working first.
messageYesWhat to do next.
model_idNoThe saved server's id, when status=created.
expires_atNoWhen finish_url stops working (ISO 8601, UTC), when status=awaiting_user.
finish_urlNoWhere your user finishes connecting the server, when status=awaiting_user.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnly, idempotent, non-destructive, closed-world), so the description's added value is the status vocabulary: 'awaiting_user', 'created' (with model_id), 'cancelled', 'expired'. It also discloses the read-scope requirement, which annotations do not. It does not explain polling behavior or what to do between calls, keeping it just under a 5.

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?

Three sentences, each carrying distinct payload: what it checks and its provenance, when to call it, and what comes back. The status list is placed last and is compact; no sentence repeats the title or the schema.

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?

For a one-parameter read tool with an output schema and full annotation coverage, the description supplies everything an agent needs: provenance of the ID, the trigger condition, the auth requirement, and the possible status values. Nothing material is left to inference.

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 coverage is 100% and the single parameter's description already says it is the pending_target_id returned by create_target, so the description's 'Requires the read scope' is the only extra context and it concerns auth rather than the parameter. Baseline 3 is appropriate when the schema fully documents the only argument.

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 ('Check a pending MCP target') and immediately ties it to the originating tool: the target 'that create_target left for your user to finish'. That single clause separates it from get_target_profile, get_assessment_status, and the other get_* siblings without opening any schema.

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?

Gives explicit timing and cadence — 'Call it once when your user says they are done' — which is exactly the trigger an agent needs. It stops short of naming a when-not case (e.g., what to do if the user cancels or never finishes), so it is clear but not exhaustive.

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