Skip to main content
Glama
MCP Actual

MCP Actual

by cubicecho

Resolve a name to an id

resolve_name_to_id
Read-onlyIdempotent

Look up the ID of an account, category, payee, or schedule by exact name; returns null when no match, so you can check existence before creating.

Instructions

Look up the id of an account, category, payee, or schedule by its exact name. Returns { id: null } when nothing matches — that is a normal answer, not an error, so use it to check whether something exists before creating it. Most other tools take ids, so this saves listing everything just to find one.

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

Input Schema

NameRequiredDescriptionDefault
nameYesThe exact name to match.
typeYesWhich kind of entity to look up.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv1.1.0
    • removedInput schema / additionalProperties
      Removed value: -false
  2. First observedv1.0.1

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, and non-destructive, so the safety profile is covered. The description adds genuinely new behavior: the { id: null } no-match result is a normal answer rather than an error, which materially changes how an agent should interpret the response, especially with no output schema. It does not cover ambiguity (duplicate names) or whether matching is case-sensitive.

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 short sentences, front-loaded with the core action, then the return-value caveat, then the rationale. Every sentence carries information the structured fields do not.

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?

For a simple two-parameter lookup with no output schema, the description covers purpose, return semantics on a miss, and the reason to prefer it over listing. The remaining gap is duplicate-name behavior, relevant given the find_duplicate_payees and merge_payees siblings.

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% and both parameters are documented there, so the baseline is 3. The description reinforces that matching is by exact name, which is a useful semantic constraint that discourages an agent from expecting fuzzy lookup, but adds no format or disambiguation detail beyond the schema.

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 states a specific verb (look up the id) and enumerates the exact resources: account, category, payee, schedule — matching the schema's type enum. It is clearly distinguishable from the list_* siblings, which return collections rather than a single id.

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?

It gives an explicit use case (check whether something exists before creating it) and implicitly contrasts with listing everything just to find one id. It stops short of naming a specific alternative tool or stating when-not to use it, so it is clear context rather than full routing guidance.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.