Skip to main content
Glama
sushiHex
by sushiHex

ask_claude

Pose a question to Claude Code and receive its answer, enabling local AI coding agents to communicate and collaborate.

Instructions

Ask Claude Code a question and wait for its reply.

With no options, preserves the original one-shot claude -p behavior and response shape — omitting model passes no --model flag, so Claude Code's own configured default applies — plus (parity with Codex) Edit/Write/NotebookEdit are denied by default — inspection tools like Read/Grep/Bash still work. model pins a Claude alias/full model ID. effort is one of default|low|medium|high|xhigh|max; default omits the flag. workdir targets a repository in default mode and is rejected in advisory mode. write=True opts into full tool access plus --permission-mode bypassPermissions (unattended — stdin is /dev/null, so an interactive prompt would hang to timeout instead of being answered); it requires workdir, is rejected in advisory mode, and is refused unless this hardline-mcp process has HARDLINE_ALLOW_WRITE set to a recognized truthy value (1/true/yes, case-insensitive). Mode advisory disables tools/project customizations, runs in a neutral cwd, strips API-provider overrides, and fails closed unless response telemetry verifies first-party account auth without overage. Optioned calls return actual-model, usage, rate-limit, auth-verification, and safeguard fallback metadata in addition to ok/reply.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
modeNodefault
modelNo
writeNo
effortNodefault
promptYes
workdirNo
Behavior5/5

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

With no annotations, description fully discloses safety and execution traits: default denial of Edit/Write/NotebookEdit, inclusion of inspection tools, `write=True` bypassing permissions and requiring HARDLINE_ALLOW_WRITE, advisory-mode neutralization/fail-closed auth checks, and the hang-to-timeout risk. This goes far beyond annotations (none provided) and clearly informs the agent of side effects and safeguards.

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?

Single opening sentence delivers purpose; remaining paragraphs are dense, information-rich parameter explanations. The long run-on style with em-dashes and parentheticals makes it slightly harder to scan, but no sentence is superfluous.

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 6-parameter tool with no output schema, the description covers what responses include (ok/reply plus metadata for optioned calls), when the tool hangs, env-var gating, mode-specific behaviors, and compatibility defaults. It is sufficiently complete for an agent to invoke safely, though exact return structure is left unspecified.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 0%, but the description compensates by explaining every non-obvious parameter: `model` pinning/default, `effort` values and default omission, `workdir` targeting and rejection, `write` opt-in semantics and prerequisites, and `mode` distinctions. Even `prompt` is inferable from the tool's purpose.

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?

Clearly states 'Ask Claude Code a question and wait for its reply'—a specific verb, target resource, and synchronous behavior. The phrase 'wait for its reply' and underlying `claude -p` reference distinguish it from async siblings like ask_claude_async.

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?

Provides detailed conditions: default/no-options behavior, when `write=True` is allowed/refused, and advisory-mode constraints. However, it never explicitly names alternative sibling tools or says 'use this when X vs async,' leaving comparison mostly implicit.

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/sushiHex/hardline-mcp'

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