Skip to main content
Glama

Read an app's code handler

anyhook_code_get
Read-only

The code that runs on this app's events: its source, the names of its secrets (never the values), whether events are reaching it, and runs used this month against the plan's limit.

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": {
      "appSlug": "<appSlug>"
    },
    "name": "anyhook_code_get"
  }
}

Input Schema

NameRequiredDescriptionDefault
appSlugYesThe app whose code handler to read.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • removedInput schema / additionalProperties
      Removed value: -false
  2. Changed1 schema field changed
    • removedInput schema / properties / api_key
      Removed value: -{
      -  "description": "API key (ahk_live_...) from anyhook_quickstart. Only needed over HTTP when no Authorization header is set; ignored over stdio.",
      -  "type": "string"
      -}
  3. Added

TDQS

B3.2/5.0
Behavior3/5

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

readOnlyHint=true already tells the agent this is a safe read, so the description's job is to add context — and it does with one genuinely useful detail: secret names are returned but values never are, which sets expectations about the payload. Beyond that it does not mention auth requirements, behavior when an app has no code handler, or anything about the response shape, so the addition is modest against an annotation that already carries the safety profile.

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?

One compact sentence built as a colon-list that front-loads the resource and then enumerates the returned data — nothing is padded or repeated. The trade-off is that the list form pushes the action verb out entirely, which slightly weakens the opening.

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

Completeness4/5

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

With only one parameter, no output schema, and readOnlyHint already supplied, the description carries the burden of describing what comes back — and it does so explicitly (source, secret names, delivery status, run usage vs plan limit). Only edge cases, such as an app with no code handler configured, are left unaddressed.

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?

There is a single required parameter (appSlug) and schema description coverage is 100%, so the schema already fully documents it. The description's 'this app's events' merely echoes that scoping and adds no format, slug syntax, or error semantics beyond what the schema provides.

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?

The description names the specific resource — the code handler attached to an app's events — and enumerates its parts (source, secret names, delivery status, monthly run usage). Combined with the title 'Read an app's code handler' an agent can tell this apart from anyhook_code_deploy and anyhook_code_test, though the description itself never uses an explicit verb like 'retrieve' or 'read'.

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

Usage Guidelines2/5

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

There is no statement of when to use this versus anyhook_code_test, anyhook_inspect, or anyhook_usage, and no prerequisites or exclusions. The read-only intent is only implied by the noun phrase and the 'never the values' aside, leaving the agent to infer the selection rule.

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.