Skip to main content
Glama
xihuai18

claude-code-mcp

by xihuai18

claude_code_reply

Destructive

Send follow-up prompts to an existing Claude Code session to continue tasks without starting a new session.

Instructions

Send a follow-up to an existing session. Reuse the same sessionId instead of starting a new claude_code session when you want to continue. Returns immediately; poll with claude_code_check. Use diskResumeConfig only when the in-memory session is missing and disk resume is enabled.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
effortNoEffort string: 'low' | 'medium' | 'high' | 'max'. Default: SDK
promptYesFollow-up prompt for the existing session.
thinkingNoThinking config object, not a string. Use {type:'adaptive'} | {type:'enabled', budgetTokens?:N} | {type:'disabled'}. Default: SDK
sessionIdYesSession ID from claude_code or an earlier claude_code_reply. Prefer this over starting a fresh claude_code session. Reply works only for persistent sessions, or with diskResumeConfig when disk resume fallback is enabled.
forkSessionNoDefault: false
diskResumeConfigNoDefault: none. Use only when the in-memory session is missing and the server allows disk resume.
sessionInitTimeoutMsNoDefault: 10000. Applies when forkSession=true.
permissionRequestTimeoutMsNoServer permission wait timeout in ms; not forwarded to SDK Options. Default: 60000, clamped to 300000

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
errorNo
statusYes
sessionIdYes
resumeTokenNo
pollIntervalNo
compatWarningsNo
Behavior5/5

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

The description discloses that the tool returns immediately and requires polling, adds nuance about diskResumeConfig, and aligns with annotations (destructiveHint=true, openWorldHint=true). It provides valuable behavioral context beyond the annotations.

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?

The description is concise (3 sentences), front-loaded with purpose, and each sentence adds unique value. No redundancy or wasted words.

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?

Given the presence of an output schema and full parameter coverage, the description sufficiently covers essential behavioral aspects and use cases. It is complete for an async tool with polling and conditional disk resume.

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?

With 100% schema description coverage, the baseline is 3. The description adds meaning by clarifying when to use sessionId and diskResumeConfig, exceeding the schema's documentation.

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 clearly states the tool sends a follow-up to an existing session, distinguishes it from starting a new session via 'claude_code', and references polling via 'claude_code_check'. It explicitly mentions reusing sessionId, making the verb and resource specific.

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

Usage Guidelines5/5

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

The description explicitly says to reuse sessionId instead of starting a new session, advises polling with claude_code_check, and specifies when to use diskResumeConfig. It provides clear context and exclusions for usage.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/xihuai18/claude-code-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server