Replies: 1 comment 2 replies
-
Why not create a second tool to lookup Cost Codes?
…On Fri, Sep 19, 2025 at 4:13 AM Sins_621 ***@***.***> wrote:
I'm trying to make a silly little tool to enter timesheets at work. The
timesheet website accepts post requests in order to make entries and one of
the values required in the body is a cost code ID. These are int enums
which map as follows:
1. Consulting
2. Software Development
3. Graphic Design
...etc
I made a resource that just returns this list as you can see in the image
I shared.
image.png (view on web)
<https://github.com/user-attachments/assets/0368d76d-0618-42ac-885f-84c9538f1d85>
I'm hoping to nudge the LLM to ascertain the appropriate cost code ID from
the prompt, for example "I worked 4 hours on software development today for
x project" and I have my tool setup as follows:
logTool := mcp.NewTool("Log work on timesheet.",
mcp.WithDescription("Allows for logging work done on timesheets."),
mcp.WithString(constants.ParamDescription,
mcp.Required(),
mcp.Description("Detailed Description of work done, gather information from git history if necessary"),
),
mcp.WithString(constants.ParamDate,
mcp.Description("Date of the entry with format 'YYYY-MM-DDTHH:MM:SS`, default to today's date if not provided"),
),
mcp.WithNumber(constants.ParamHours,
mcp.Required(),
mcp.Description("Hours the user has worked on this entry"),
),
mcp.WithNumber(constants.ParamTaskID,
mcp.Required(),
mcp.Description("The ID of the project the user is working on. Can be retrieved from Project ID Tool"),
),
mcp.WithString(constants.ParamCostCodeID,
mcp.Required(),
mcp.Description("The relevant Cost Code ID of the work done."),
mcp.WithStringEnumItems(constants.CostCodeIDs),
),
)
Unfortunately though I can't seem to get Gemini/Cursor-Agent to use this
resource to look up Cost Codes so my question is 1. Do these agents use
resources and 2. Is this the right approach? Would it be simpler to just
load the entire list into the Cost Code description?
—
Reply to this email directly, view it on GitHub
<#594>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AADVMB6FO77QIMCDIVILPJT3TMG5ZAVCNFSM6AAAAACG43E22OVHI2DSMVQWIX3LMV43ERDJONRXK43TNFXW4OZYHEYTONJXGA>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
--
Best regards,
Daniël Bos
Your government is reading your email. Slow them down with encryption.
My public key: http://goo.gl/gms497 (4096 bit RSA, id EF2D5D91)
Fingerprint : D8D0 9FBE F075 F709 7B52 2F73 326C 2123 EF2D 5D91
|
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
sins621
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'm trying to make a silly little tool to enter timesheets at work. The timesheet website accepts post requests in order to make entries and one of the values required in the body is a cost code ID. These are int enums which map as follows:
...etc
I made a resource that just returns this list as you can see in the image I shared.

I'm hoping to nudge the LLM to ascertain the appropriate cost code ID from the prompt, for example "I worked 4 hours on software development today for x project" and I have my tool setup as follows:
Unfortunately though I can't seem to get Gemini/Cursor-Agent to use this resource to look up Cost Codes so my question is 1. Do these agents use resources and 2. Is this the right approach? Would it be simpler to just load the entire list into the Cost Code description?
Beta Was this translation helpful? Give feedback.
All reactions