Skip to main content
Glama
halvrenofviryel

phionyx-mcp-server

record_tool_call

Record a tool call by creating a signed RGE envelope with input and output hashes, appending it to the trace's audit chain to enable tamper-evident audit and verification.

Instructions

Capability 4 + 7: record a tool call (input + output hashes) as a signed RGE v0.2 envelope with the mcp_tool_audit block populated. Appends to the trace's audit chain and returns the new envelope's integrity hash. The envelope is persisted under ~/.phionyx/mcp_audit//.json by default (configurable via PHIONYX_MCP_AUDIT_ROOT).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
turn_indexYes
user_textYes
producerYes
trace_idNo
tool_descriptor_hashNo
descriptor_change_detectedNo
tool_permission_scopeNo
input_hashNo
output_hashNo
approval_stateNo
anomaly_flagNo
decisionNorelease
decision_reasonNono policy violation
runtime_policy_basisNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior4/5

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

With no annotations, the description carries full burden and reveals key behaviors: writing signed envelopes, appending to chain, returning hash, configurable persistence path. It omits potential failure modes, permission requirements, or side effects, but covers core behavior well.

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 (50 words) front-load capability IDs and action, then detail functionality. No redundant phrases; every sentence adds value.

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

Completeness2/5

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

Despite mentioning return of integrity hash, the description lacks explanation for 14 parameters, omits output schema details, and provides no examples. For a complex audit-writing tool, this is insufficient for an agent to use correctly.

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

Parameters1/5

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

Schema description coverage is 0% for 14 parameters. The description only mentions 'input + output hashes' but fails to explain critical parameters like turn_index, user_text, producer, trace_id, etc. This leaves agents without meaningful guidance on parameter usage.

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 records a tool call with input/output hashes as a signed envelope, appends to audit chain, returns integrity hash, and persists to file. It distinguishes from sibling audit tools (decision, anomaly, query, verification) by focusing solely on recording the call itself.

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 description implies use for recording tool calls in an audit trail but does not explicitly state when to use this tool versus alternatives like audit_record_decision or query_audit_history. No when-not-to-use guidance is given.

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/halvrenofviryel/phionyx-mcp-server'

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