Skip to main content
Glama

Lovie Company Formation

Get Invoice

invoice_get_invoice
Read-only

Returns one invoice by id with its line items, client, totals, due date and payment state. Read-only. Use this to answer questions about a specific invoice; to find its id, list the company's invoices first.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYesUUID value wrapper.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
invoiceNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changed
    • addedOutput schema / properties / invoice / anyOf
      Added value: +[
      +  {
      +    "properties": {
      +      "cancelledAt": {
      +        "anyOf": [
      +          {
      +            "format": "date-time",
      +            "type": "string"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ]
      +      },
      +      "clientAddress": {
      +        "type": "string"
      +      },
      +      "clientEmail": {
      +        "type": "string"
      +      },
      +      "clientId": {
      +        "anyOf": [
      +          {
      +            "description": "UUID value wrapper.",
      +            "properties": {
      +              "value": {
      +                "format": "uuid",
      +                "type": "string"
      +              }
      +            },
      +            "type": "object"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ]
      +      },
      +      "clientName": {
      +        "type": "string"
      +      },
      +      "clientPhone": {
      +        "type": "string"
      +      },
      +      "companyId": {
      +        "anyOf": [
      +          {
      +            "description": "UUID value wrapper.",
      +            "properties": {
      +              "value": {
      +                "format": "uuid",
      +                "type": "string"
      +              }
      +            },
      +            "type": "object"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ]
      +      },
      +      "createdAt": {
      +        "anyOf": [
      +          {
      +            "format": "date-time",
      +            "type": "string"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ]
      +      },
      +      "discountAmountCents": {
      +        "type": "string"
      +      },
      +      "discountTotalCents": {
      +        "type": "string"
      +      },
      +      "discountType": {
      +        "enum": [
      +          "DISCOUNT_TYPE_UNSPECIFIED",
      +          "DISCOUNT_TYPE_PERCENTAGE",
      +          "DISCOUNT_TYPE_FIXED"
      +        ],
      +        "type": "string"
      +      },
      +      "discountValueBps": {
      +        "type": "integer"
      +      },
      +      "dueDate": {
      +        "type": "string"
      +      },
      +      "id": {
      +        "anyOf": [
      +          {
      +            "description": "UUID value wrapper.",
      +            "properties": {
      +              "value": {
      +                "format": "uuid",
      +                "type": "string"
      +              }
      +            },
      +            "type": "object"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ]
      +      },
      +      "invoiceNumber": {
      +        "type": "string"
      +      },
      +      "issueDate": {
      +        "type": "string"
      +      },
      +      "items": {
      +        "items": {
      +          "properties": {
      +            "amountCents": {
      +              "type": "string"
      +            },
      +            "createdAt": {
      +              "anyOf": [
      +                {
      +                  "format": "date-time",
      +                  "type": "string"
      +                },
      +                {
      +                  "type": "null"
      +                }
      +              ]
      +            },
      +            "description": {
      +              "type": "string"
      +            },
      +            "id": {
      +              "anyOf": [
      +                {
      +                  "description": "UUID value wrapper.",
      +                  "properties": {
      +                    "value": {
      +                      "format": "uuid",
      +                      "type": "string"
      +                    }
      +                  },
      +                  "type": "object"
      +                },
      +                {
      +                  "type": "null"
      +                }
      +              ]
      +            },
      +            "invoiceId": {
      +              "anyOf": [
      +                {
      +                  "description": "UUID value wrapper.",
      +                  "properties": {
      +                    "value": {
      +                      "format": "uuid",
      +                      "type": "string"
      +                    }
      +                  },
      +                  "type": "object"
      +                },
      +                {
      +                  "type": "null"
      +                }
      +              ]
      +            },
      +            "quantity": {
      +              "type": "string"
      +            },
      +            "sortOrder": {
      +              "type": "integer"
      +            },
      +            "unitPriceCents": {
      +              "type": "string"
      +            },
      +            "updatedAt": {
      +              "anyOf": [
      +                {
      +                  "format": "date-time",
      +                  "type": "string"
      +                },
      +                {
      +                  "type": "null"
      +                }
      +              ]
      +            }
      +          },
      +          "type": "object"
      +        },
      +        "type": "array"
      +      },
      +      "notes": {
      +        "type": "string"
      +      },
      +      "paidAt": {
      +        "anyOf": [
      +          {
      +            "format": "date-time",
      +            "type": "string"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ]
      +      },
      +      "paymentTerms": {
      +        "enum": [
      +          "PAYMENT_TERMS_UNSPECIFIED",
      +          "PAYMENT_TERMS_DUE_ON_RECEIPT",
      +          "PAYMENT_TERMS_NET_7",
      +          "PAYMENT_TERMS_NET_15",
      +          "PAYMENT_TERMS_NET_30",
      +          "PAYMENT_TERMS_NET_60",
      +          "PAYMENT_TERMS_CUSTOM"
      +        ],
      +        "type": "string"
      +      },
      +      "sentAt": {
      +        "anyOf": [
      +          {
      +            "format": "date-time",
      +            "type": "string"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ]
      +      },
      +      "status": {
      +        "enum": [
      +          "INVOICE_STATUS_UNSPECIFIED",
      +          "INVOICE_STATUS_DRAFT",
      +          "INVOICE_STATUS_SENT",
      +          "INVOICE_STATUS_VIEWED",
      +          "INVOICE_STATUS_PAID",
      +          "INVOICE_STATUS_CANCELLED"
      +        ],
      +        "type": "string"
      +      },
      +      "subtotalCents": {
      +        "type": "string"
      +      },
      +      "taxAmountCents": {
      +        "type": "string"
      +      },
      +      "taxRateBps": {
      +        "type": "integer"
      +      },
      +      "totalCents": {
      +        "type": "string"
      +      },
      +      "updatedAt": {
      +        "anyOf": [
      +          {
      +            "format": "date-time",
      +            "type": "string"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ]
      +      },
      +      "viewedAt": {
      +        "anyOf": [
      +          {
      +            "format": "date-time",
      +            "type": "string"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ]
      +      }
      +    },
      +    "required": [
      +      "companyId"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • removedOutput schema / properties / invoice / properties
      Removed value: -{
      -  "cancelledAt": {
      -    "format": "date-time",
      -    "type": "string"
      -  },
      -  "clientAddress": {
      -    "type": "string"
      -  },
      -  "clientEmail": {
      -    "type": "string"
      -  },
      -  "clientId": {
      -    "description": "UUID value wrapper.",
      -    "properties": {
      -      "value": {
      -        "format": "uuid",
      -        "type": "string"
      -      }
      -    },
      -    "type": "object"
      -  },
      -  "clientName": {
      -    "type": "string"
      -  },
      -  "clientPhone": {
      -    "type": "string"
      -  },
      -  "companyId": {
      -    "description": "UUID value wrapper.",
      -    "properties": {
      -      "value": {
      -        "format": "uuid",
      -        "type": "string"
      -      }
      -    },
      -    "type": "object"
      -  },
      -  "createdAt": {
      -    "format": "date-time",
      -    "type": "string"
      -  },
      -  "discountAmountCents": {
      -    "type": "string"
      -  },
      -  "discountTotalCents": {
      -    "type": "string"
      -  },
      -  "discountType": {
      -    "enum": [
      -      "DISCOUNT_TYPE_UNSPECIFIED",
      -      "DISCOUNT_TYPE_PERCENTAGE",
      -      "DISCOUNT_TYPE_FIXED"
      -    ],
      -    "type": "string"
      -  },
      -  "discountValueBps": {
      -    "type": "integer"
      -  },
      -  "dueDate": {
      -    "type": "string"
      -  },
      -  "id": {
      -    "description": "UUID value wrapper.",
      -    "properties": {
      -      "value": {
      -        "format": "uuid",
      -        "type": "string"
      -      }
      -    },
      -    "type": "object"
      -  },
      -  "invoiceNumber": {
      -    "type": "string"
      -  },
      -  "issueDate": {
      -    "type": "string"
      -  },
      -  "items": {
      -    "items": {
      -      "properties": {
      -        "amountCents": {
      -          "type": "string"
      -        },
      -        "createdAt": {
      -          "format": "date-time",
      -          "type": "string"
      -        },
      -        "description": {
      -          "type": "string"
      -        },
      -        "id": {
      -          "description": "UUID value wrapper.",
      -          "properties": {
      -            "value": {
      -              "format": "uuid",
      -              "type": "string"
      -            }
      -          },
      -          "type": "object"
      -        },
      -        "invoiceId": {
      -          "description": "UUID value wrapper.",
      -          "properties": {
      -            "value": {
      -              "format": "uuid",
      -              "type": "string"
      -            }
      -          },
      -          "type": "object"
      -        },
      -        "quantity": {
      -          "type": "string"
      -        },
      -        "sortOrder": {
      -          "type": "integer"
      -        },
      -        "unitPriceCents": {
      -          "type": "string"
      -        },
      -        "updatedAt": {
      -          "format": "date-time",
      -          "type": "string"
      -        }
      -      },
      -      "type": "object"
      -    },
      -    "type": "array"
      -  },
      -  "notes": {
      -    "type": "string"
      -  },
      -  "paidAt": {
      -    "format": "date-time",
      -    "type": "string"
      -  },
      -  "paymentTerms": {
      -    "enum": [
      -      "PAYMENT_TERMS_UNSPECIFIED",
      -      "PAYMENT_TERMS_DUE_ON_RECEIPT",
      -      "PAYMENT_TERMS_NET_7",
      -      "PAYMENT_TERMS_NET_15",
      -      "PAYMENT_TERMS_NET_30",
      -      "PAYMENT_TERMS_NET_60",
      -      "PAYMENT_TERMS_CUSTOM"
      -    ],
      -    "type": "string"
      -  },
      -  "sentAt": {
      -    "format": "date-time",
      -    "type": "string"
      -  },
      -  "status": {
      -    "enum": [
      -      "INVOICE_STATUS_UNSPECIFIED",
      -      "INVOICE_STATUS_DRAFT",
      -      "INVOICE_STATUS_SENT",
      -      "INVOICE_STATUS_VIEWED",
      -      "INVOICE_STATUS_PAID",
      -      "INVOICE_STATUS_CANCELLED"
      -    ],
      -    "type": "string"
      -  },
      -  "subtotalCents": {
      -    "type": "string"
      -  },
      -  "taxAmountCents": {
      -    "type": "string"
      -  },
      -  "taxRateBps": {
      -    "type": "integer"
      -  },
      -  "totalCents": {
      -    "type": "string"
      -  },
      -  "updatedAt": {
      -    "format": "date-time",
      -    "type": "string"
      -  },
      -  "viewedAt": {
      -    "format": "date-time",
      -    "type": "string"
      -  }
      -}
    • removedOutput schema / properties / invoice / required
      Removed value: -[
      -  "companyId"
      -]
    • removedOutput schema / properties / invoice / type
      Removed value: -"object"
  2. First observed

TDQS

A4.1/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false, and the description reinforces this with 'Read-only.' It adds useful output content context (line items, client, totals, due date, payment state) but does not disclose any additional behavioral edge cases. Since annotations carry the safety burden, the description adds modest value beyond them.

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, purposeful sentences: the first states what it returns, the second confirms read-only behavior, and the third provides actionable workflow guidance. No filler or repetition beyond a minor 'Read-only' note.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a simple read-only single-parameter tool with a rich output schema and safety annotations, the description is complete. It covers what the tool returns, how to use it, and how to obtain the required id.

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 the only parameter, id, is already documented as a UUID value wrapper. The description repeats 'by id' but does not add meaningful syntax or formatting details beyond the schema, so the baseline of 3 is appropriate.

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?

Description states a specific verb and resource: 'Returns one invoice by id' with a clear list of contained fields. It also differentiates from the list operation by saying 'to find its id, list the company's invoices first'.

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?

Clearly tells the agent when to use this tool: 'Use this to answer questions about a specific invoice.' It also gives a prerequisite workflow for finding the id via listing invoices. It does not explicitly mention alternatives for PDFs or other invoice views, but the guidance is sufficient.

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.