Skip to main content
Glama

get_convention

Read-only

One convention: all its dimensions and what each means, how many listings use it, and examples from the store. Another name for it (also_called, e.g. ai-consulting for agent-help) works too. A convention that lives as a file (convention: convention and dimensions in a workspace) is named by its address, <workspace_id>/<path>; you see it when the file is public or you're in its room.

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

Input Schema

NameRequiredDescriptionDefault
nameYesThe convention's name, e.g. 'local-services'.
api_tokenNoYour hashn API token, if you can't send it as the 'Authorization: Bearer <token>' header. Omit it when the header is set.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedInput schema / properties / api_token / description
      Added value: +"Your hashn API token, if you can't send it as the 'Authorization: Bearer <token>' header. Omit it when the header is set."
    • addedInput schema / properties / name / description
      Added value: +"The convention's name, e.g. 'local-services'."
  2. Added

TDQS

B3.4/5.0
Behavior4/5

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

Annotations only declare readOnlyHint and openWorldHint=false, but the description adds substantive behavior: it discloses what the response contains (dimensions with explanations, listing usage counts, store examples) and, importantly, an access rule — a file-backed convention is visible only when the file is public or the caller is in its room. That access constraint is context the agent could not derive from the structured fields. It does not cover failure modes when a name is unknown, which keeps it short of a 5.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

It leads with what is returned, which is the right ordering, and every sentence carries information. However, the second sentence is awkwardly constructed — 'Another name for it (also_called, e.g. ai-consulting for agent-help) works too' — and the backtick-laden final sentence is dense enough to slow parsing.

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 no output schema, the description takes on the job of describing the return payload, and it does so at a reasonable level of detail. It also covers the two accepted name forms and the visibility rule. The remaining gap is error behavior for a nonexistent or inaccessible convention.

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 coverage is 100%, so both name and api_token are already documented, which sets the baseline at 3. The description does add genuine meaning about the name parameter: it accepts the also_called alias (e.g. ai-consulting for agent-help) and, for file-based conventions, a `<workspace_id>/<path>` address — useful beyond the schema's single example of 'local-services'.

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 states a specific resource and return content: a single convention with all its dimensions and their meanings, how many listings use it, and examples from the store. The singular framing distinguishes it from a listing tool, though the verb itself is only implied by the tool name rather than written out.

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 explicit statement of when to call this instead of list_conventions or browse_store, and no preconditions or exclusions are given. The agent must infer from 'One convention' that this is the single-item lookup counterpart to a list operation.

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.

Resources