Skip to main content
Glama

Tokenbooks - crypto and fiat accounting and payments

Get Portfolio

get_portfolio
Read-onlyIdempotent

Read one portfolio's settings and accounting policy by exact name or slug, including its financial reporting framework and legal entity type. If legalEntityType is omitted, it is unset.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
portfolioRefYesPortfolio exact name or slug
workspaceRefYesWorkspace exact name or slug

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameYes
slugYes
currencyYes
createdAtYes
updatedAtYes
legalEntityTypeNo
hasPostedActivityYes
reportingTimezoneYes
accountingConfigurationYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedOutput schema / properties / hasPostedActivity
      Added value: +{
      +  "type": "boolean"
      +}
    • changedOutput schema / required
      Previous value: -[
      -  "slug",
      -  "name",
      -  "createdAt",
      -  "updatedAt",
      -  "currency",
      -  "accountingConfiguration",
      -  "reportingTimezone"
      -]New value: +[
      +  "slug",
      +  "name",
      +  "createdAt",
      +  "updatedAt",
      +  "currency",
      +  "accountingConfiguration",
      +  "reportingTimezone",
      +  "hasPostedActivity"
      +]
  2. First observed

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint=false, so safety is covered. The description adds a genuine behavioral nuance beyond the annotations: that legalEntityType is returned unset when omitted, which tells the agent how to interpret a missing field.

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?

Two tight sentences, front-loaded with the core action and scope. The trailing sentence about legalEntityType is slightly tangential to the call itself but is short and useful, so nothing is wasted.

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?

An output schema exists, so return values need not be enumerated, and the description still sketches what is returned. For a simple two-required-param read tool with full annotation coverage, the only missing piece is explicit routing versus list_portfolios.

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%, and both parameters ('exact name or slug') are already documented in the schema, so the description adds nothing beyond it. Baseline 3 for full schema coverage.

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?

Specific verb (read) plus resource (one portfolio's settings and accounting policy) with a clear scope qualifier (by exact name or slug). It also names the content domains (financial reporting framework, legal entity type). It does not explicitly differentiate from the sibling list_portfolios, which is the obvious ambiguity, so it falls short of a 5.

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

Usage Guidelines3/5

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

'Read one portfolio... by exact name or slug' implies a single-record lookup, distinguishing it implicitly from bulk listing, but no alternative tool is named and no when-not-to-use condition is given. Usage is inferable rather than stated.

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