Skip to main content
Glama

register_convention

Register a new convention when no existing one fits (check list_conventions first): a name (e.g. 'pet-grooming'), what its listings are about, and its dimensions (one or more) as {field: what it means}. The convention is exactly the dimensions you give (0.70.0: nothing is borrowed from need-can, and extends is gone): for listings, include need and can, and name, description, price, contact_method, contact_info as you want them (name one with an empty description and it takes need-can's wording); with neither need nor can its instances are records. If similar conventions exist you get them back; register again with confirm_new=true if none fits. Each dimension's meaning is this convention's own (a name used elsewhere without a description copies that meaning). A dimension can be {"description": ..., "values": [...], "multi": false} to allow only those values, and can carry its members inside it: {"description": ..., "members": {"cream": {"description": ..., "members": {...}}, "ice": "..."}}. A member's name is unique within its dimension: written under a second parent it is the same member (an alternate hierarchy), described once; one that would be its own ancestor is refused. A listing gives a member its value as <dimension>.<member> (dessert.cream), however deep the member sits. unique names fields no two listings may share. checks (0.73.0) are your own rules on the convention's listings, a list of {"when": {dimension: condition}, "require": {dimension: condition}, "author_named_in": dimension, "agreed_by": dimension, "settled_by": dimension, "unless_author_in": [agent ids], "from": "YYYY-MM-DD", "meaning": "a sentence the author of a failing listing reads"}: a condition is filled, empty, readable (a price), or {"is": x}, {"one_of": [...]}, {"at_least": n}, {"not_within": [members]}, or (0.100.0, a check across files) {"names_instance": {"by": dimension, "where": {...}, "convention"?: name or address}}: the value names another file of the convention (or of convention) in the same workspace by its by value, and with where that file meets those conditions; author_named_in asks that the listing's author is named, by agent id, in that dimension of the listing; agreed_by (0.77.0, once per convention) flags nothing: it says the agents named in that dimension of a file are who agrees to it, so files on your convention can be agreed like a deal (agree, or an agreement file; deal_status); settled_by (0.78.0, once) flags nothing either: the agent named in that dimension of a file (a team there: its lead) settles it with a verification whose subject is the file at a version, verdict pass, and list_files says settled. A check flags a listing with your meaning as the reason and refuses nothing; the answer's checks says how many of today's listings each one flags. 0.74.0: your checks follow every instance of the convention, not only listings: any file whose header names it is flagged the same way when saved (flagged in write_file's answer and list_files, issues in query_index), to those who can read the file; its author is whoever saved it. Given, checks is the whole list ([] removes them); left out, they stay. Names are first come, first served; you can later add dimensions, members and values by registering the same name again, never rename or remove them; growth puts no listing behind.

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>",
      "description": "<description>",
      "dimensions": "<dimensions>"
    },
    "name": "register_convention"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYesA new convention name, lowercase with dashes, e.g. 'pet-grooming'.
checksNoOptional (0.73.0): your own rules on the convention's listings, a list of {when?, require?, author_named_in?, unless_author_in?, from?, meaning}. The whole list: [] removes them, leaving it out keeps them. A check flags; it refuses nothing.
uniqueNoOptional: fields whose combination no two listings on this convention may share, e.g. ['metro']. Fixed once set.
api_tokenNoYour hashn API token, if you can't send it as the 'Authorization: Bearer <token>' header. Omit it when the header is set.
dimensionsYesIts fields (one or more) as {field: what it means}, or {field: {description, values, multi}} to allow only some values. All of them: for listings include need and can (and name, description, price, contact_method, contact_info).
confirm_newNoSet true to register even though similar conventions exist.
descriptionYesWhat kind of work its listings are about.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / checks
      Added value: +{
      +  "anyOf": [
      +    {
      +      "items": {
      +        "additionalProperties": true,
      +        "type": "object"
      +      },
      +      "type": "array"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "Optional (0.73.0): your own rules on the convention's listings, a list of {when?, require?, author_named_in?, unless_author_in?, from?, meaning}. The whole list: [] removes them, leaving it out keeps them. A check flags; it refuses nothing.",
      +  "title": "Checks"
      +}
  2. Changed2 schema fields changed
    • changedInput schema / properties / dimensions / description
      Previous value: -"Its fields (one or more) as {field: what it means}, or {field: {description, values, multi}} to allow only some values. Don't repeat the trunk fields (name, description, need, can, contact_method, contact_info)."New value: +"Its fields (one or more) as {field: what it means}, or {field: {description, values, multi}} to allow only some values. All of them: for listings include need and can (and name, description, price, contact_method, contact_info)."
    • removedInput schema / properties / extends
      Removed value: -{
      -  "default": "need-can",
      -  "description": "The convention it builds on (default: the trunk, 'need-can').",
      -  "title": "Extends",
      -  "type": "string"
      -}
  3. Changed1 schema field changed
    • changedInput schema / properties / dimensions / description
      Previous value: -"5 to 9 fields as {field: what it means}, or {field: {description, values, multi}} to allow only some values. Don't repeat the trunk fields (name, description, need, can, contact_method, contact_info)."New value: +"Its fields (one or more) as {field: what it means}, or {field: {description, values, multi}} to allow only some values. Don't repeat the trunk fields (name, description, need, can, contact_method, contact_info)."
  4. Changed4 schema fields changed
    • addedInput schema / properties / dimensions / additionalProperties / anyOf
      Added value: +[
      +  {
      +    "type": "string"
      +  },
      +  {
      +    "additionalProperties": true,
      +    "type": "object"
      +  }
      +]
    • removedInput schema / properties / dimensions / additionalProperties / type
      Removed value: -"string"
    • changedInput schema / properties / dimensions / description
      Previous value: -"5 to 9 fields as {field: what it means}. Don't repeat the trunk fields (name, description, need, can, contact_method, contact_info)."New value: +"5 to 9 fields as {field: what it means}, or {field: {description, values, multi}} to allow only some values. Don't repeat the trunk fields (name, description, need, can, contact_method, contact_info)."
    • addedInput schema / properties / unique
      Added value: +{
      +  "anyOf": [
      +    {
      +      "items": {
      +        "type": "string"
      +      },
      +      "type": "array"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "Optional: fields whose combination no two listings on this convention may share, e.g. ['metro']. Fixed once set.",
      +  "title": "Unique"
      +}
  5. Changed6 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 / confirm_new / description
      Added value: +"Set true to register even though similar conventions exist."
    • addedInput schema / properties / description / description
      Added value: +"What kind of work its listings are about."
    • addedInput schema / properties / dimensions / description
      Added value: +"5 to 9 fields as {field: what it means}. Don't repeat the trunk fields (name, description, need, can, contact_method, contact_info)."
    • addedInput schema / properties / extends / description
      Added value: +"The convention it builds on (default: the trunk, 'need-can')."
    • addedInput schema / properties / name / description
      Added value: +"A new convention name, lowercase with dashes, e.g. 'pet-grooming'."
  6. Added

TDQS

A4.6/5.0
Behavior5/5

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

Beyond annotations (readOnly=false, destructive=false), it discloses first-come-first-served naming, append-only growth, that dimensions/members/values cannot be renamed or removed, and that checks only flag rather than refuse. It also explains propagation of checks to every instance and how checks are replaced or retained, which is substantive behavioral context.

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

Conciseness2/5

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

The definition is a dense wall of text with nested parentheticals and version tags (0.70.0, 0.73.0, 0.100.0) that interrupt the core instructions. Although the purpose is front-loaded, it is far longer than needed for an agent to select and call the tool, and several clauses are hard to parse in one pass.

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?

It covers the complex convention and checks model and the mutation constraints thoroughly, which is necessary because there is no output schema. However, it still gives only partial return-value detail (similar conventions, checks counts, flagged status) and leaves some response shape implicit.

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 100%, but the description still adds essential semantics: dimensions can be strings or objects with values/multi, nested members define alternate hierarchies, listing values use <dimension>.<member>, and checks use a condition grammar (filled, empty, readable, is, one_of, at_least, not_within, names_instance). It also explains unique and confirm_new behavior beyond the schema text.

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 opening sentence uses a specific verb and resource ('Register a new convention') and immediately scopes it to 'when no existing one fits,' naming list_conventions as the check-first sibling. An agent can distinguish this from lookup/list tools without opening the schema.

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?

It states the precondition for use ('when no existing one fits'), directs the agent to check list_conventions first, and explains the similar-conventions return plus confirm_new=true when none fits. It also notes that re-registering the same name is the path for later additions, making the alternative flow explicit.

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