Skip to main content
Glama

Object detail

get_object
Read-only

Read one object before you act on it: its fields, relations with join keys, caveats, used_by_workflows, and the documents that touch it as links (path, title, status, why). Use this, not fetch, for an object you can name; route for the path between two objects; ask when the question spans several. Echo pii=true values only when the task requires it. Details: maplith://docs/mcp.

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_object"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYesThe object name, e.g. "invoice"; case-insensitive.
contextNo{"client": "<company>"}, not a person: adds its variation.
statement_keyNoRead one applicable rule in full.
statements_onlyNoRules only ({} if none), for a client that cut a long answer.
statements_queryNoRank rules; never filter them.
statements_cursorNoNext page; keep the same query.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • changedInput schema / properties / context / description
      Previous value: -"{\"client\": \"<company>\"} (never a person): adds its confirmed variation."New value: +"{\"client\": \"<company>\"}, not a person: adds its variation."
    • changedInput schema / properties / name / description
      Previous value: -"Object name as search and route hand it out, e.g. \"invoice\"; all lower case matches too."New value: +"The object name, e.g. \"invoice\"; case-insensitive."
    • changedInput schema / properties / statements_only / description
      Previous value: -"Rules alone, {} when none apply; call again with it only when your client cut a long answer."New value: +"Rules only ({} if none), for a client that cut a long answer."
  2. Changed1 schema field changed
    • removedInput schema / properties / rule_node
      Removed value: -{
      -  "description": "One rule group, by node_key.",
      -  "maxLength": 32,
      -  "type": "string"
      -}
  3. Changed1 schema field changed
    • changedInput schema / properties / name / description
      Previous value: -"Object name as the map spells it, as search and route hand it out, e.g. \"invoice\"; an all-lower-case name matches too."New value: +"Object name as search and route hand it out, e.g. \"invoice\"; all lower case matches too."
  4. Changed1 schema field changed
    • changedInput schema / properties / name / description
      Previous value: -"Object name as the map spells it — the name search, route and the object pages hand out, e.g. \"invoice\" or \"Invoice\". A name written entirely in lower case is matched too."New value: +"Object name as the map spells it, as search and route hand it out, e.g. \"invoice\"; an all-lower-case name matches too."
  5. Changed1 schema field changed
    • addedInput schema / properties / context
      Added value: +{
      +  "description": "{\"client\": \"<company>\"} (never a person): adds its confirmed variation.",
      +  "type": "object"
      +}
  6. Changed1 schema field changed
    • changedInput schema / properties / statements_only / description
      Previous value: -"Rules without other context."New value: +"Rules alone, {} when none apply; call again with it only when your client cut a long answer."
  7. Changed1 schema field changed
    • addedInput schema / properties / rule_node
      Added value: +{
      +  "description": "One rule group, by node_key.",
      +  "maxLength": 32,
      +  "type": "string"
      +}
  8. Changed4 schema fields changed
    • addedInput schema / properties / statement_key
      Added value: +{
      +  "description": "Read one applicable rule in full.",
      +  "maxLength": 80,
      +  "type": "string"
      +}
    • addedInput schema / properties / statements_cursor
      Added value: +{
      +  "description": "Next page; keep the same query.",
      +  "maxLength": 512,
      +  "type": "string"
      +}
    • addedInput schema / properties / statements_only
      Added value: +{
      +  "description": "Rules without other context.",
      +  "type": "boolean"
      +}
    • addedInput schema / properties / statements_query
      Added value: +{
      +  "description": "Rank rules; never filter them.",
      +  "maxLength": 300,
      +  "type": "string"
      +}
  9. Changed1 schema field changed
    • changedInput schema / properties / name / description
      Previous value: -"Object name, e.g. \"invoice\""New value: +"Object name as the map spells it — the name search, route and the object pages hand out, e.g. \"invoice\" or \"Invoice\". A name written entirely in lower case is matched too."
  10. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false and openWorldHint=false, so the safety profile is covered. The description adds genuine non-annotation context: the returned payload may contain PII that should only be echoed when the task requires it, and results include forward-looking "caveats" rather than raw data alone. The bare "Details: maplith://docs/mcp" pointer offloads the remainder instead of stating it.

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?

Content is front-loaded: what it returns first, routing second, the PII rule last. The middle sentence packs three alternatives into one clause chain very efficiently. The unresolvable docs URI is a small dead weight that a calling agent cannot act on directly.

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 six parameters, a nested context object and no output schema, the description usefully enumerates the return payload so the agent knows what to expect. Gaps remain around the statement_* paging/rules behavior (statements_cursor, statements_query ranking) and the shape of nested context variation. Overall adequate but not exhaustive for a tool this configurable.

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 description coverage is 100%, so the baseline is 3 and the schema already explains name, context, and the four statement_* parameters. The description adds nothing about the statement/rules options and even blurs them by listing "caveats" among return content, so it neither compensates nor misleads. It stays at the minimum-viable level for parameter meaning.

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 first clause states a specific verb and resource ("Read one object") and then enumerates exactly what comes back: fields, relations with join keys, caveats, used_by_workflows, and linked documents with path/title/status/why. It explicitly carves itself out from siblings fetch, route and ask, so an agent can select it without inspecting another 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?

Gives an explicit routing rule with named alternatives and the condition that selects each: use this for an object you can name, route for a path between two objects, ask when the question spans several. It also adds a pre-condition ("before you act on it") and a data-handling constraint on pii=true values.

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