Skip to main content
Glama

Send and Wait

send_and_wait

Send a prompt to GitHub Copilot and wait for the complete response, blocking until the agent finishes or the timeout is reached.

Instructions

Send a message to GitHub Copilot and wait for the complete response. Blocks until the agent finishes or timeout is reached.

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": {
      "workspace": "<workspace>",
      "sessionId": "<sessionId>",
      "prompt": "<prompt>"
    },
    "name": "send_and_wait"
  }
}

Input Schema

NameRequiredDescriptionDefault
promptYesMessage content to send to the agent
timeoutNoTimeout in milliseconds (default: 300000 = 5 minutes)
sessionIdYesSession ID
workspaceYesWorkspace ID or project directory path
attachmentsNoFile attachments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.2

TDQS

A3.5/5.0
Behavior3/5

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

With no annotations, the description must carry the behavioral load, and it does disclose the most important trait: the call blocks until the agent finishes or the timeout fires. It omits what happens on timeout (error vs. partial result), whether the session is left in a usable state, and any auth or concurrency constraints.

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?

Two sentences, zero waste, with the blocking behavior front-loaded immediately after the core action. Nothing is padded or redundant.

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 5-parameter, 3-required tool with no annotations and no output schema, the definition covers the call semantics but leaves the return value unexplained — the agent cannot tell whether it receives text, a message object, or partial output. Timeout outcome behavior is also missing, which matters for a tool whose central risk is blocking.

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%, including units and the 5-minute default for timeout, so the schema already documents all five parameters. The description adds no additional parameter meaning, which is acceptable at full coverage — baseline 3.

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?

Names a specific verb and resource (send a message to GitHub Copilot) plus the defining trait — it waits for the complete response. This implicitly separates it from the sibling 'send' and 'poll', but never names either, so the agent must infer the distinction.

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?

The phrase 'waits for the complete response' implies the use case (synchronous round-trip rather than fire-and-forget), but there is no explicit when-to-use/when-not guidance, no mention of preferring 'send' + 'poll' for long-running work, and no advice on choosing a timeout.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.